Sample build.properties file

View: New views
5 Messages — Rating Filter:   Alert me  

Sample build.properties file

by Irfan.Sayed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

 

Can anyone please give me the sample build. properties file. I need to
understand the syntax of the same.

 

Please help

 

Regards

Irfan.

 


Re: Sample build.properties file

by Ognjen Blagojevic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Irfan.Sayed@... 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: user-unsubscribe@...
For additional commands, e-mail: user-help@...


RE: Sample build.properties file

by Irfan.Sayed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:ognjen@...]
Sent: Monday, June 16, 2008 3:29 PM
To: Ant Users List
Subject: Re: Sample build.properties file

Irfan.Sayed@... 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: user-unsubscribe@...
For additional commands, e-mail: user-help@...


<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: user-unsubscribe@...
For additional commands, e-mail: user-help@...

Re: Sample build.properties file

by Ognjen Blagojevic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You try to read the build.properties file:

<property file="${output}/build.properties"/>

from the location that is unknown, because ${output} is not defined at
the moment the properties file is being read.

If your build.properties file is in the current directory, just use

<property file="build.properties"/>.

-Ognjen


Irfan.Sayed@... wrote:

> 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:ognjen@...]
> Sent: Monday, June 16, 2008 3:29 PM
> To: Ant Users List
> Subject: Re: Sample build.properties file
>
> Irfan.Sayed@... 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: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Sample build.properties file

by Scot P. Floess :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A properties file is a standard Java properties file...

Basically,

name = value

pairs ;)



On Mon, 16 Jun 2008, Irfan.Sayed@... wrote:

> Hi all,
>
>
>
> Can anyone please give me the sample build. properties file. I need to
> understand the syntax of the same.
>
>
>
> Please help
>
>
>
> Regards
>
> Irfan.
>
>
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

LightInTheBox - Buy quality products at wholesale price