diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-07-03 17:50:44 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-07-03 17:50:44 +0200 |
commit | 88d4c1e54cb9a7820580fda86fc79aa0b0c54c88 (patch) | |
tree | 5432a5ed79ff5a22f9d2ae537bfa4477a60b4c40 /buildScripts/create-eclipse-project.ant.xml | |
parent | 933d75c2fe1dc69e2d0b08649e26d4d5939c2a64 (diff) | |
download | lombok-88d4c1e54cb9a7820580fda86fc79aa0b0c54c88.tar.gz lombok-88d4c1e54cb9a7820580fda86fc79aa0b0c54c88.tar.bz2 lombok-88d4c1e54cb9a7820580fda86fc79aa0b0c54c88.zip |
[build] [wip] the eclipse debug targets still aren't entirely correct.
Diffstat (limited to 'buildScripts/create-eclipse-project.ant.xml')
-rw-r--r-- | buildScripts/create-eclipse-project.ant.xml | 92 |
1 files changed, 59 insertions, 33 deletions
diff --git a/buildScripts/create-eclipse-project.ant.xml b/buildScripts/create-eclipse-project.ant.xml index 89e2f91f..67eff3bc 100644 --- a/buildScripts/create-eclipse-project.ant.xml +++ b/buildScripts/create-eclipse-project.ant.xml @@ -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 /> + + <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" /> + + <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}" /> - <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.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" /> - <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}" /> + <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> |