mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 20:15:09 +00:00
[build] [wip] the eclipse debug targets still aren't entirely correct.
This commit is contained in:
3 files changed
+81
-42
No files matched your search
@@ -59,7 +59,6 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede
|
||||
<target name="eclipse.testtarget.default" depends="deps, compile.support">
|
||||
<property name="cp.test" refid="cp.test" />
|
||||
<property name="cp.stripe" refid="cp.stripe" />
|
||||
<property name="cp.eclipse-202006" refid="cp.eclipse-202006" />
|
||||
|
||||
<java classname="lombok.eclipseCreate.CreateEclipseDebugTarget" failonerror="true">
|
||||
<classpath>
|
||||
@@ -75,6 +74,7 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede
|
||||
<arg value="favorite" />
|
||||
</java>
|
||||
|
||||
<fetchdep.eclipse version="202006" />
|
||||
<java classname="lombok.eclipseCreate.CreateEclipseDebugTarget" failonerror="true">
|
||||
<classpath>
|
||||
<path refid="cp.buildtools" />
|
||||
@@ -86,7 +86,7 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede
|
||||
<arg value="bootpath=${jdk8-rt.loc}" />
|
||||
<arg value="conf.test=${cp.test}" />
|
||||
<arg value="conf.stripe=${cp.stripe}" />
|
||||
<arg value="conf.eclipse-oxygen=${cp.eclipse-202006}" />
|
||||
<arg value="conf.eclipse-202006=${cp.eclipse-202006}" />
|
||||
<arg value="favorite" />
|
||||
</java>
|
||||
|
||||
@@ -104,79 +104,105 @@ This buildfile is part of projectlombok.org. It creates the infrastructure neede
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<macrodef name="eclipse.testtarget.conf.jvmtarget">
|
||||
<attribute name="question" default="Which JDK do you want to target? Enter a version, such as '11'. Suggested (default): 8" />
|
||||
<attribute name="validargs" default="6,8,11,14" />
|
||||
<sequential>
|
||||
<property name="cp.test" refid="cp.test" />
|
||||
<property name="cp.stripe" refid="cp.stripe" />
|
||||
|
||||
<input message="@{question}" validargs="@{validargs}" defaultvalue="8" addproperty="inputs.jvmtarget.raw" />
|
||||
|
||||
<condition property="inputs.jvmtarget" value="1.6"><equals arg1="${inputs.jvmtarget.raw}" arg2="6" /></condition>
|
||||
<condition property="inputs.jvmtarget" value="1.8"><equals arg1="${inputs.jvmtarget.raw}" arg2="8" /></condition>
|
||||
<property name="inputs" value="${inputs.jvmtarget.raw}" />
|
||||
|
||||
<condition property="inputs.bootpath" value="${jdk6-rt.loc}"><equals arg1="${inputs.jvmtarget.raw}" arg2="6" /></condition>
|
||||
<condition property="inputs.bootpath" value="${jdk8-rt.loc}"><equals arg1="${inputs.jvmtarget.raw}" arg2="8" /></condition>
|
||||
<property name="inputs.bootpath" value="0" />
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<target name="eclipse.testtarget.javac" depends="compile.support" description="Makes an eclipse launch target for running the tests for javac">
|
||||
<property name="cp.test" refid="cp.test" />
|
||||
<property name="cp.stripe" refid="cp.stripe" />
|
||||
|
||||
<input message="Which javac do you want to target? Enter a version, such as '11'." validargs="8,11,13,14,15" addproperty="testtarget.jvmTarget.input" />
|
||||
|
||||
<condition property="testtarget.jvmtarget" value="1.8" else="${testtarget.jvmTarget.input}"><equals arg1="${testtarget.jvmTarget.input}" arg2="8" /></condition>
|
||||
<property name="testtarget.confname" value="javac${testtarget.jvmTarget.input}" />
|
||||
<property name="testtarget.confcp" refid="cp.javac${testtarget.jvmTarget.input}" />
|
||||
<eclipse.testtarget.conf.jvmtarget question="Which javac do you want to target? Enter a version, such as '11'." validargs="8,11,13,14,15" />
|
||||
|
||||
<java classname="lombok.eclipseCreate.CreateEclipseDebugTarget" failonerror="true">
|
||||
<classpath>
|
||||
<path refid="cp.buildtools" />
|
||||
<pathelement location="build/support" />
|
||||
</classpath>
|
||||
<arg value="name=Lombok-test Javac ${testtarget.jvmTarget.input}" />
|
||||
<arg value="name=Lombok-test Javac ${inputs.jvmtarget.raw}" />
|
||||
<arg value="testType=lombok.TestJavac" />
|
||||
<arg value="jvmTarget=${testtarget.jvmTarget}" />
|
||||
<arg value="jvmTarget=${inputs.jvmtarget}" />
|
||||
<arg value="bootpath=${inputs.bootpath}" />
|
||||
<arg value="conf.test=${cp.test}" />
|
||||
<arg value="conf.stripe=${cp.stripe}" />
|
||||
<arg value="conf.${testtarget.confname}=${testtarget.confcp}" />
|
||||
<arg value="conf.${inputs.confname}=${inputs.confcp}" />
|
||||
<arg value="favorite" />
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="eclipse.testtarget.eclipse" depends="compile.support" description="Makes an eclipse launch target for running the tests for eclipse support">
|
||||
<property name="cp.test" refid="cp.test" />
|
||||
<property name="cp.stripe" refid="cp.stripe" />
|
||||
<eclipse.testtarget.conf.jvmtarget />
|
||||
|
||||
<input message="Which JDK do you want to target? Enter a version, such as '11'. Suggested (default): 8" validargs="8,11,14" defaultvalue="8" addproperty="testtarget.jvmTarget.input" />
|
||||
<input message="Which eclipse do you want to target? Enter a version, such as 'oxygen'." validargs="oxygen" addproperty="testtarget.eclipseTarget" />
|
||||
<local name="inputs.eclipsetarget" />
|
||||
<input message="Which eclipse do you want to target? Enter a version, such as 'oxygen'." validargs="oxygen" addproperty="inputs.eclipsetarget" />
|
||||
|
||||
<condition property="testtarget.jvmtarget" value="1.8" else="${testtarget.jvmTarget.input}"><equals arg1="${testtarget.jvmTarget.input}" arg2="8" /></condition>
|
||||
<property name="testtarget.confname" value="eclipse-${testtarget.eclipseTarget}" />
|
||||
<property name="testtarget.confcp" refid="cp.eclipse-${testtarget.eclipseTarget}" />
|
||||
<local name="inputs.confname" />
|
||||
<property name="inputs.confname" value="eclipse-${inputs.eclipsetarget}" />
|
||||
|
||||
<local name="inputs.confcp" />
|
||||
<property name="inputs.confcp" refid="cp.eclipse-${inputs.eclipsetarget}" />
|
||||
|
||||
<fetchdep.eclipse version="${inputs.eclipsetarget}" />
|
||||
|
||||
<java classname="lombok.eclipseCreate.CreateEclipseDebugTarget" failonerror="true">
|
||||
<classpath>
|
||||
<path refid="cp.buildtools" />
|
||||
<pathelement location="build/support" />
|
||||
</classpath>
|
||||
<arg value="name=Lombok-test Eclipse-${testtarget.eclipseTarget}" />
|
||||
<arg value="name=Lombok-test Eclipse-${inputs.eclipsetarget}" />
|
||||
<arg value="testType=lombok.TestEclipse" />
|
||||
<arg value="jvmTarget=${testtarget.jvmTarget}" />
|
||||
<arg value="jvmTarget=${inputs.jvmtarget}" />
|
||||
<arg value="bootpath=${inputs.bootpath}" />
|
||||
<arg value="conf.test=${cp.test}" />
|
||||
<arg value="conf.stripe=${cp.stripe}" />
|
||||
<arg value="conf.${testtarget.confname}=${testtarget.confcp}" />
|
||||
<arg value="conf.${inputs.confname}=${inputs.confcp}" />
|
||||
<arg value="favorite" />
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="eclipse.testtarget.ecj" depends="compile.support" description="Makes an eclipse launch target for running the tests for ecj support">
|
||||
<property name="cp.test" refid="cp.test" />
|
||||
<property name="cp.stripe" refid="cp.stripe" />
|
||||
<eclipse.testtarget.conf.jvmtarget />
|
||||
|
||||
<input message="Which JDK do you want to target? Enter a version, such as '11'. Suggested (default): 8" validargs="8,11,14" defaultvalue="8" addproperty="testtarget.jvmTarget.input" />
|
||||
<input message="Which ecj do you want to target? Enter a version, such as '8'." validargs="8,11,14" addproperty="testtarget.ecjTarget" />
|
||||
<local name="inputs.ecjtarget" />
|
||||
<input message="Which ecj do you want to target? Enter a version, such as '8'." validargs="8,11,14" addproperty="inputs.ecjtarget" />
|
||||
|
||||
<condition property="testtarget.jvmtarget" value="1.8" else="${testtarget.jvmTarget.input}"><equals arg1="${testtarget.jvmTarget.input}" arg2="8" /></condition>
|
||||
<property name="testtarget.confname" value="ecj${testtarget.ecjTarget}" />
|
||||
<property name="testtarget.confcp" refid="cp.ecj${testtarget.ecjTarget}" />
|
||||
<local name="inputs.confname" />
|
||||
<property name="inputs.confname" value="ecj${inputs.ecjtarget}" />
|
||||
|
||||
<local name="inputs.confcp" />
|
||||
<property name="inputs.confcp" refid="cp.ecj${inputs.ecjtarget}" />
|
||||
|
||||
<local name="inputs.bootpath" />
|
||||
<condition property="inputs.bootpath" value="${jdk6-rt.loc}"><equals arg1="${inputs.jvmtarget.raw}" arg2="6" /></condition>
|
||||
<condition property="inputs.bootpath" value="${jdk8-rt.loc}"><equals arg1="${inputs.jvmtarget.raw}" arg2="8" /></condition>
|
||||
<property name="inputs.bootpath" value="0" />
|
||||
|
||||
<fetchdep.ecj version="${inputs.ecjtarget}" />
|
||||
|
||||
<java classname="lombok.eclipseCreate.CreateEclipseDebugTarget" failonerror="true">
|
||||
<classpath>
|
||||
<path refid="cp.buildtools" />
|
||||
<pathelement location="build/support" />
|
||||
</classpath>
|
||||
<arg value="name=Lombok-test ECJ${testtarget.ecjTarget}" />
|
||||
<arg value="name=Lombok-test ECJ${inputs.ecjtarget}" />
|
||||
<arg value="testType=lombok.TestEclipse" />
|
||||
<arg value="jvmTarget=${testtarget.jvmTarget}" />
|
||||
<arg value="jvmTarget=${inputs.jvmtarget}" />
|
||||
<arg value="bootpath=${inputs.bootpath}" />
|
||||
<arg value="conf.test=${cp.test}" />
|
||||
<arg value="conf.stripe=${cp.stripe}" />
|
||||
<arg value="conf.${testtarget.confname}=${testtarget.confcp}" />
|
||||
<arg value="conf.${inputs.confname}=${inputs.confcp}" />
|
||||
<arg value="favorite" />
|
||||
</java>
|
||||
</target>
|
||||
|
||||
Reference in new issue
Block a user