ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veena pandit <v.kri...@gmail.com>
Subject Re: converting ant from a make file
Date Fri, 18 Sep 2009 13:51:39 GMT
Great Thanks!  Next I have a some kind of a script:
for c in A B C D E; do
      perl ...
     perl ...
     perl...
     - mkdir Backup
      mv *bak Backup

How do I move this script over to ant build.xml.

Thanks,

Veena


On Fri, Sep 18, 2009 at 9:24 AM, Ernst de Haan <ernst@pensioenpage.com>wrote:

>  Based on what you said,  I am looking to eliminate the OS-differenes.
>>  But
>> this is what I have.
>>
>> In the makefile.linux:
>> LOCAL = /usr/local/project_name
>> In the makefile.Windows_NT
>> LOCAL = C:/Project_name.
>>
>> How do I avoid this?  If I removed the differences what would the
>> universal
>> LOCAL look like?
>>
>
>
> Some alternative solutions:
>
> 1. Put the directory for the project below the directory that contains the
> Ant build file. This is the easiest, from Ant-perspective.
>
> 2. Put the location in a properties file and load the property from that
> file - this will require the properties file to be excluded from your
> version control system and it requires the file to exist with a valid value
> on every system. This file may contain the following:
>
>   project.location=/usr/local/project_name/
>
> 3. Load a properties file, depending on the OS as follows:
>
>   <properties file="${os.name}.properties" />
>
> The latter solution will load the file Windows.properties,
> Linux.properties, etc. depending on the OS name.
>
> Kind regards,
>
>
>
> Ernst de Haan
> PensioenPage B.V.
> www.pensioenpage.com
>
> tel. +31 6 20246157
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message