wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes What should i give in the <pathelement> path attribute to find a class defined in a package? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "What should i give in the <pathelement> path attribute to find a class defined in a package?" Watch "What should i give in the <pathelement> path attribute to find a class defined in a package?" New topic
Author

What should i give in the <pathelement> path attribute to find a class defined in a package?

Vish Joshi
Greenhorn

Joined: Dec 22, 2010
Posts: 16
<project default="dir" >
<property name="build" value="Build"/>
<target name="dir" >

<javac srcdir="../Build1" destdir="." includes="hello.java"/>
<java classname="hello">

<classpath>
<pathelement path="Build1/convergys"/>
</classpath>

</java>

</target>
</project>

Folder Structure is like this:-
Build
->com
->hello.class
->build2.xml



Vish Joshi
Greenhorn

Joined: Dec 22, 2010
Posts: 16
hello.class is in "com" package
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3826

You can set it to a property which points to the top level directory of your classes.


Check Path-like structures for more information.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What should i give in the <pathelement> path attribute to find a class defined in a package?