- This topic has 2 replies, 3 voices, and was last updated 14 years, 7 months ago by
bes1213.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
romovsMemberIf ant buildfile contains <?eclipse.ant.import?> and its task depends on a target from separate file ant editor produces error “Target build does not exist in this project”.
build_custom.xml
<?eclipse.ant.import?> <project name="gcustom" basedir="." default="jar"> <property name="src.dir" value="src"/> <property name="bin.dir" value="bin"/> <target name="jar" depends="build"> <delete file="${bin.dir}/${ant.project.name}.jar" /> <jar destfile="${bin.dir}/${ant.project.name}.jar" basedir="${bin.dir}"> <manifest> </manifest> </jar> <copy file="${bin.dir}/${ant.project.name}.jar" todir="../src/app/lib"/> </target> </project>
build.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- WARNING: Eclipse auto-generated file. Any modifications will be overwritten. To include a user specific buildfile here, simply create one in the same directory with the processing instruction <?eclipse.ant.import?> as the first entry and export the buildfile again. --> <project basedir="." default="build" name="gp-jaas"> <property environment="env"/> <property name="owner-web.location" value="../owner-web"/> <property name="ECLIPSE_HOME" value="../../../Genuitec/MyEclipse 8.5"/> <property name="debuglevel" value="source,lines,vars"/> <property name="target" value="1.6"/> <property name="source" value="1.6"/> <import file="build_custom.xml"/> <path id="Java EE 5 Libraries.libraryclasspath"> <pathelement location="../../../Genuitec/Common/plugins/com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033/data/libraryset/EE_5/javaee.jar"/> <pathelement location="../../../Genuitec/Common/plugins/com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033/data/libraryset/EE_5/jsf-impl.jar"/> <pathelement location="../../../Genuitec/Common/plugins/com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033/data/libraryset/EE_5/jsf-api.jar"/> <pathelement location="../../../Genuitec/Common/plugins/com.genuitec.eclipse.j2eedt.core_8.5.0.me201003231033/data/libraryset/EE_5/jstl-1.2.jar"/> </path> <path id="gp-jaas.classpath"> <pathelement location="bin"/> <pathelement location="lib/log4j-1.2.16.jar"/> <path refid="Java EE 5 Libraries.libraryclasspath"/> </path> <target name="init"> <mkdir dir="bin"/> <copy includeemptydirs="false" todir="bin"> <fileset dir="src"> <exclude name="**/*.launch"/> <exclude name="**/*.ucls"/> <exclude name="**/*.java"/> </fileset> </copy> </target> <target name="clean"> <delete dir="bin"/> </target> <target depends="clean" name="cleanall"/> <target depends="build-subprojects,build-project" name="build"/> <target name="build-subprojects"/> <target depends="init" name="build-project"> <echo message="${ant.project.name}: ${ant.file}"/> <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"> <src path="src"/> <classpath refid="gp-jaas.classpath"/> </javac> </target> <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"> <ant antfile="${owner-web.location}/build.xml" dir="${owner-web.location}" inheritAll="false" target="clean"/> <ant antfile="${owner-web.location}/build.xml" dir="${owner-web.location}" inheritAll="false" target="build"> <propertyset> <propertyref name="build.compiler"/> </propertyset> </ant> </target> <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> <copy todir="${ant.library.dir}"> <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> </copy> <unzip dest="${ant.library.dir}"> <patternset includes="jdtCompilerAdapter.jar"/> <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> </unzip> </target> <target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> <antcall target="build"/> </target> </project>
support-shaliniMemberromovs,
I shall escalate this issue to the dev team member. They will get back to you on this.
bes1213MemberI am having the same problem. I believe this used to work in earlier versions of MyEclipse so this seems like a regression.
Thank you,
Brian
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)