ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: help me
Date Mon, 10 Sep 2001 13:22:49 GMT
Hi DK,

You must use the following:

<target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${build}/ext/myproject"/>

OR otherwise

<property name="build" value="c:\build\ext\myproject"/>

Either of these should work.
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Tel: +91 80 558 1487-90 ext. 2416

"Dhirendra Kulkarni" <>
09/10/01 11:08 AM
Please respond to ant-user

        To:     <>
        Subject:        help me

Hi all , i am beginner to ANT tool and just started withi it. I have 
started with some building processes and i am facing the following problwm
My directory structure is like this
                              ------------myproject (contains directories 
a, b, c and java files)
(contains java files)
(contains java files)
(contains directories x and y) 
 ---------x (contains java files)
 ---------y (contains java files)
Iam building using following javac task for compiling in my build.xml 
<property name="src" value="C:\src\ext\myproject"/>
<property name="build" value="c:\build"/>
<target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${build}"/>
iam getting output like this           c:\--------build 
 ------------myproject (contains directories a, b, c and class files)
              ------------------a (contains class files)
              ------------------b (contains class files)
         ---------x (contains class files)
         ---------y (contains class files)
I want that c directory should come under myproject  but it is coming 
under ext.
so please help in getting that.

View raw message