Skip to main content



      Home
Home » Newcomers » Newcomers » Build dir not recognized
Build dir not recognized [message #257059] Sun, 25 May 2008 02:13 Go to next message
Eclipse UserFriend
Originally posted by: loandbt.bigpond.com

Hello, I have a project working OK in Eclipse with Ant and am able to
build the jar file OK.

However Eclipse seems to ignore my build.xml configuration and puts all
the classes in a bin folder even though build.xml stipulates classes
folder. I can manually delete the bin folder and contents and when I run
the project Eclipse generates a new bin folder with all the classes. The
classes folder is generated by Ant but remains empty.
Can some kind person see an error in the script?

<?xml version="1.0" encoding = "UTF-8"?>

<project name="RadOnColS" default="jarfile" basedir=".">

<target name="init">
<property name ="name" value="RadOnColS"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="etc.dir" value="etc"/>
</target>

<target name="clean" depends="init">
<deldir dir="${build.dir}"/>
</target>

<target name="prepare" depends="init">
<mkdir dir="${classes.dir}"/>
<mkdir dir="${src.dir}"/>
</target>

<target name="compile" depends="prepare">
<javac srcdir="${src.dir}"
destdir="${classes.dir}"
debug="true"
deprecation="true"
optimize="false"/>
</target>

<target name="jarfile" depends="compile">
<jar destfile="${build.dir}/${name}.jar"
basedir="${classes.dir}"
manifest="${etc.dir}/MANIFEST.MF"/>
</target>


</project>
Re: Build dir not recognized [message #257067 is a reply to message #257059] Sun, 25 May 2008 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: loandbt.bigpond.com

I should add that the word 'bin' does not appear anywhere in the build.xml
file so it seems it is something that Eclipse is generating and not using
the build.xml file at all.
Re: Build dir not recognized [message #257163 is a reply to message #257059] Mon, 26 May 2008 02:56 Go to previous message
Eclipse UserFriend
Originally posted by: loandbt.bigpond.com

UhOh, I found the problem in the settings under default build folder.
Previous Topic:Using Swing's Frame with SWT-Project included
Next Topic:Reg. Credentials Provider in RSE
Goto Forum:
  


Current Time: Wed May 14 20:29:10 EDT 2025

Powered by FUDForum. Page generated in 0.08738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top