You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by pm rao <ma...@gmail.com> on 2008/11/04 23:34:26 UTC
Nothing to do is up to date
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="<file-name>.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 when it is trying 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
Re: Nothing to do is up to date
Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Do you really mean to literally name the files <dest-file> and
directory <dest-dir>??? When I say literally, that will be come the name
of the file and directory respectively... Yes, the <> do matter. ${} is
for property value substitution. <> are being taken here literally. So,
if you were operating in a directory named foo, it'd be something akin to
this:
foo/<dest-file>.tar.bz2
I think your problem with the tarfileset is you are not grabbing your
files - meaning you are attempting to pull files from a directory entitled
<dest-dir>
I bet no directory named this exists...
I really believe you are wanting to do property value substituion,
therefore the ${dest-dir}
Did you define a property named dest-dir?
On Wed, 5 Nov 2008, pm rao wrote:
> 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 <sf...@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
>
>
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
Re: Nothing to do is up to date
Posted by pm rao <ma...@gmail.com>.
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 <sf...@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
Re: Nothing to do is up to date
Posted by "Scot P. Floess" <sf...@nc.rr.com>.
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="<file-name>.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 when it is trying 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