ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pm rao" <mailforgr...@gmail.com>
Subject Re: Nothing to do <file-name> is up to date
Date Wed, 05 Nov 2008 15:02:17 GMT
Hi Scot,

Thanks for the info. Your guess is correct. Its a typo..

<delete file="<file-name>.tar.bz2" /> is incorrect

it should be <delete file="<dest-file>.tar.bz2" />. And i think it
doesnt matter if you give it as ${} or <>, as i'm not defining any
properties for ${dest-file} (for example) and giving some absolute
values as <dest-file>. I have made some changes to below example.
Please let me know on how to resolve this. As i said, what i think is
we need to give proper options to tarfileset which i'm unable to
figure it out.

On Wed, Nov 5, 2008 at 7:48 AM, Scot P. Floess <sfloess@nc.rr.com> wrote:
>
> Silly question...did you really want to name your file "<dest-file>.tar.bz2" or
did you mean to do something like
> "${dest-file}.tar.bz2" ????
>
> I don't think you are doing the correct thing.  You delete <file-name>.tar.bz2,
but are creating a <dest-file>.tar.bz2
>
> Basically, it may be up 2 date and not recreating...
>
> My guess is you really mean to do something like this:
>
> <target name="zip-file">
>    <delete file="${dest-file}.tar.bz2" />
>    <tar compression="bzip2" destfile="${dest-file}.tar.bz2" >
>        <tarfileset dir="." includes="${dest-dir}/bin/**" excludes="**/*.bat" filemode="755"
/>
>        <tarfileset dir="." includes="${dest-dir}/bin/*.bat" />
>        <tarfileset dir="." includes="${dest-dir}/examples/build" filemode="755" />
>        <tarfileset dir="." includes="${dest-dir}/examples/**" excludes="${dest-dir}/examples/build"
/>
>        <tarfileset dir="." includes="${dest-dir}/lib/**" />
>    </tar>
> </target>
>
> On Tue, 4 Nov 2008, pm rao wrote:
>
>> Hi All,
>>
>> I have added following code snippet into my build.xml. And i observed there
>> is no zip (tar.bz2) file created after build.
>>
>>  <target name="zip-file">
>>
>>   <delete file="<dest-file>.tar.bz2" />
>>
>>   <tar compression="bzip2" destfile="<dest-file>.tar.bz2" >
>>     <tarfileset dir="." includes="<dest-dir>/bin/**" excludes="**/*.bat"
>> filemode="755" />
>>     <tarfileset dir="." includes="<dest-dir>/bin/*.bat" />
>>     <tarfileset dir="." includes="<dest-dir>/examples/build"
>> filemode="755" />
>>     <tarfileset dir="." includes="<dest-dir>/examples/**"
>> excludes="<dest-dir>/examples/build" />
>>     <tarfileset dir="." includes="<dest-dir>/lib/**" />
>>   </tar>
>>  </target>
>>
>> I expect my build.xml present at <another-dir>/build.xml to compiles all the
>> code in <dest-dir>/ and creates a tar.bz2 file in <dest-dir>/. But it
is
>> able to compile all the code and in the end it is unable to create
>> zip(tar.bz2) file. Its giving a message as:
>>
>> zip-file:
>>     [tar] Nothing to do: <dest-dir>/<dest-file>.tar.bz2 is up to date.
>>
>> When I expect my build.xml present at <another-dir>/build.xml to compiles
>> all the code in <another-dir>/ and creates a tar.bz2 file in <another-dir>/.
>> it is able to compile all the code and able to create zip(tar.bz2) file.
>>
>> What i'm suspecting is that we need to set the option for "dir" in
>> tarfileset. I have tried with as <tarfileset dir="<dest-dir>" but it didnot
>> work. Could any one please help me out in resolving this issue.
>>
>> --
>> Thanks & Regards,
>> Mallik
>>
>
> 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@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

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


Mime
View raw message