Below is an example of a small build.xml that doesn't
parse correctly within eclipse rc3.
I tried resetting the ANT_HOME variable in the
Window->preferences->Ant->Runtime section to the location of Ant 1.6.5
on my harddrive. In the global entries, I also included all of the
libraries that the project was using. Still nothing - it continues to put
? markers next to things like junit, hbm2java, and
middlegen.
Thanks for the help!
<?xml version="1.0"?>
<project name="Hibernatabase" basedir="."
default="codegen"> <property name="source.root"
value="src"/> <property name="generated-source.root"
value="generated_src"/> <property name="class.root"
value="bin"/> <property name="lib.dir"
value="lib"/> <property name="conf.dir"
value="conf"/> <property name="dist.dir"
value="dist"/> <path
id="project.class.path"> <!-- Include our classes, of
course --> <pathelement
location="${class.root}"/> <!-- Include jars in the project
library directory --> <fileset
dir="${lib.dir}"> <include
name="**/*.jar"/> </fileset> </path> <target
name="test"> <junit printsummary="false"
haltonfailure="true" fork="true"> <formatter
type="brief"
usefile="false"/> <batchtest> <fileset
dir="${class.root}"
includes="**/*Test*.class"/> </batchtest> <classpath> <fileset
dir="lib"> <include
name="*.jar"/> </fileset> </classpath> <classpath
location="${class.root}"/> </junit> </target> </project>
This is not really the correct forum for these
kinds of questions...but whatever...
Are you adding the correct required JARs to the Ant
runtime classpath?
Did you add any JARs to your lib directory of Ant
1.6.3? If so have you added these same JARs in Eclipse?
Can you provide a sample buildfile that exhibits
the problem with detailed instructions on exactly what you did and how it is
failing.
HTH Darins
In the future please ask user questions on the
eclipse newsgroups
----- Original Message -----
Sent: Thursday, June 23, 2005 4:45
PM
Subject: [platform-ant-dev] Ant taskdef
problems with 3.1 M7 through to RC3
I am working with the stable builds of Eclipse 3.1
from M7 to RC3 and they all seem to share a similar problem with ant. We
are using hibernate and a related tool middlegen. I am trying to use
hbm2java, declaring it as a taskdef, then using it. Eclipse complains
that the element "hbm2java" must be declared. The same thing happens
with middlegen, I declare it as a taskdef and then use it, but the same error
occurs. It works from the command-line, so I'm not sure I understand
what is happening with the Eclipse ant script parser.
I am using ant 1.6.3 on the commandline and the
standard ant that comes with eclipse 3.1 rc3. Thanks for the help! Jeremy
_______________________________________________ platform-ant-dev
mailing
list platform-ant-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/platform-ant-dev
|