facebook

To include a user specific buildfile
💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #297784 Reply

    jctbmw
    Member

    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.

    #297827

    Loyal Water
    Member

    Hi,
    You should post this query on the Eclipse users group because the ant functionality is provided by the platform and we don’t change it in any way.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: To include a user specific buildfile

You must be logged in to post in the forum log in