Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Problem with ant's javac task

Reply
Thread Tools

Re: Problem with ant's javac task

 
 
z3
Guest
Posts: n/a
 
      07-23-2003
Try with your build.xml in the root folder and <project basedir="."


"Sophie" <(E-Mail Removed)> a écrit dans le message news:
http://www.velocityreviews.com/forums/(E-Mail Removed)...
> Hello,
>
> i have the following ant target to compile sources:
>
> -----------------------------------------------------------------
> ...
> <property name="src-dir" value="src" />
> <property name="build-dir" value="classes" />
>
> <target name="compile">
> <mkdir dir="${build-dir}"/>
> <javac srcdir="${src-dir}" destdir="${build-dir}"/>
> </target>
> ...
> -----------------------------------------------------------------
>
> Assuming i have the one .java file in ${src-dir} and the following
> structure of folders.
>
> root
> -- classes
> -- src
> ---- oneJavaClass.java
>
> the result is as follows.
>
> root
> -- classes
> ---- src
> ------ oneJavaClass.class
> --src
> ----oneJavaClass.java
>
> How do i have to change the ant target, that the oneJavaClass.java is
> compiled directly under the classes folder without producing another
> src folder in the classes folder, because the oneJavaClass.java does not
> belong that package structure. This is the result i am looking for:
>
> root
> -- classes
> ---- oneJavaClass.class
> --src
> ----oneJavaClass.java
>
>
> Thanks for your advice
>
> Sophie



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANT: Return status from javac task Lax Java 1 01-18-2007 07:40 PM
Maven using ANT plugin for SCP task : Embedded error: Could not create task or type of type: scp. krabhi Java 1 08-09-2006 04:19 PM
Problem with ant javac task not finding interface dependence Collin VanDyck Java 2 11-18-2004 04:13 PM
Re: Problem in ant replace task and replaceregexp task to update xml Victor Java 0 09-01-2004 03:58 AM
Ant not excluding on javac task sowbug Java 4 01-26-2004 03:30 AM



Advertisments