Hi,
I am using myeclipse 6.6
I am trying to add a custom build file jarbuild.xml to be imported into the auto-generated build file for my project which basically just builds a library jar.
I have added the ant <?eclipse.ant.import?> before and after the project tag in my jarbuild.xml file, but the auto-generated build file is not linked to the custom build file with the <import file=”jarbuild.xml”.
My steps:
1. Create custom build file from the first auto-generated buildfile and rename to jarbuild.xml, all this build file does is execute the <jar> tag.
2. I add the <?eclipse.ant.import?> above the <project> tag
3. Saved the custom build file as jarbuild.xml
4. At this point my project “appdirectory” has jarbuild.xml on the root
5. Right-click the root “appdirectory” folder and select export–>ant build file
6. The ant build file is created
7. I look at the build file and don’t see a <import file=”jarbuild.xml”> and I don’t see in the ant view a task “create” which runs the jar task.
Sample custom build file below:
<?xml version=”1.0″ encoding=”UTF-8″?>
<?eclipse.ant.import?>
<project basedir=”.” name=”appdirectory”>
<target name=”create”>
<property name=”archive.dir” value=”C:/MyEclipseWorkspaces/svn/Projects/acme/appdirectory/WebContent/WEB-INF/lib”/>
<property name=”jarfile.dir” value=”appdirectory”/>
<jar destfile=”${archive.dir}/${jarfile.dir}.jar” basedir=”target\classes” update=”true”>
</jar>
</target>
</project>
Problem:
How to get the custom build file linked into the auto-generated build file.