ant, packages, and classpaths.

A

Abbasi Dhilawala

I have an application that i need to compile using ant. my ant script
for doing it is

<property name="TOP" value="C:/Eprocess/EJB" />
<property name="LIB" value="C:/Eprocess/lib" />
<property name="JBOSS_HOME" value="C:/jboss-workflow" />
<property name="SOURCE" value="${TOP}/com/tietronix/workflow" />


<property name="JBOSSLIB"
value="${JBOSS_HOME}/server/default/lib/jboss-j2ee.jar" />
<property name="JBOSSLIB2"
value="${JBOSS_HOME}/server/default/lib/javax.servlet.jar" />
<property name="JBOSSLIB3"
value="${JBOSS_HOME}/server/default/lib/jbosssx.jar" />
<property name="JBOSSLIB4"
value="${JBOSS_HOME}/server/default/lib/mail.jar" />
<property name="JBOSSLIB5"
value="${JBOSS_HOME}/server/default/lib/activation.jar" />
<property name="ROWSET" value="${LIB}/rowset.jar" />
<property name="JUNIT" value="${LIB}/junit.jar" />
<property name="LDAPJAR" value="${LIB}/ldapjdk.jar" />
<property name="JDOM" value="${LIB}/jdom.jar" />

<target name="compile">

<javac srcdir="${SOURCE}/beans" source="1.4">
<classpath>
<pathelement location="${TOP}" />
<pathelement location="${JBOSSLIB}" />
<pathelement location="${JBOSSLIB2}" />
<pathelement location="${ROWSET}" />
<pathelement location="${JDOM}" />
<pathelement location="${SOURCE}" />
</classpath>
</javac>
</target>

my problem is that java files under the beans directory are dependent
on another package com.tietronix.workflow.engine. but this folder does
not have nay class files in it. just the source files. when i use
javac to compile the bean source files it automatically compiles the
engine files also. but for some reason ant does not and throws me an
error saying that the class wasnt found. any ideas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top