Hi,

Thank you for response. Actually I have written one build.xml and build.
properties file but unfortunately it is not executing fine.
Build script is not compiling the actual source code and secondly it is
creating the directory as ${output}\classess instead of classess.

Please find the attached build.xml and build. properties file and the
exact output.

Request you all to please have a look and guide/help me

Regards
Irfan.


-----Original Message-----
From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 3:29 PM
To: Ant Users List
Subject: Re: Sample build.properties file

[EMAIL PROTECTED] wrote:
> Can anyone please give me the sample build. properties file. I need to
> understand the syntax of the same.

There is nothing special about build.properties file. Just the textual 
name-value pairs, someting like:

src=src
build=bin
deploy=/usl/local/tomcat/webapps

and so on. You can use these pairs as parameters for some standard 
build.xml file, instead of scattering them around the XML.


Did you mean maybe an example of build.XML file?

Regards,
Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

<project name="Test" default="compile" basedir=".">
<property file="${output}/build.properties"/>
<target name="compile">
<!-- Compile Java classes as necessary -->
    <mkdir    dir="${output}/classess"/>
    <javac srcdir="${output}"
          destdir="${output}/classess"
            debug="${compile.debug}"
      deprecation="${compile.deprecation}"
         optimize="${compile.optimize}">
    <!--    <classpath refid="compile.classpath"/> -->
    </javac>
	</target>
	</project>
D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>ant compile -f buil
d_test.xml
Buildfile: build_test.xml

compile:
    [mkdir] Created dir: D:\Irfan\Manvendra Singh java code\Manvendra Singh java
 code\${output}\classess

BUILD SUCCESSFUL
Total time: 0 seconds
D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>ant compile -f buil
d_test.xml
Buildfile: build_test.xml

compile:

BUILD SUCCESSFUL
Total time: 0 seconds
D:\Irfan\Manvendra Singh java code\Manvendra Singh java code>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to