ant, packages, and classpaths.
From: Abbasi Dhilawala (abbasi_4_at_yahoo.com)
Date: 06/29/04
- Next message: Shane Mingins: "Re: Is it JAVA or VB.net?"
- Previous message: Alexandr Molochnikov: "Re: naming conventions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Jun 2004 14:33:57 -0700
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
- Next message: Shane Mingins: "Re: Is it JAVA or VB.net?"
- Previous message: Alexandr Molochnikov: "Re: naming conventions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|