ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: tarfileset
Date Wed, 26 Sep 2001 16:31:27 GMT
Simon,

What is ${ssab.workDir} set to? Is it a relative or full path?

Diane

--- SimonRichardson2@halifax.co.uk wrote:
> Chris
> 
> I tried using the .\ notation but this gave a "nothing to do", possibly
> because the files were not found? 
> 
>    [tar] Nothing to do: .. \latest\ss-src.tar is up to date.
> 
> But, it did take a little while to finish!
> 
> The .bat may be a misnomer - it happens to be the top of an alphabetic
> list
> of files under the workDir.
> 
> But, thanks for your input.
> 
> Simon
> 
> -----Original Message-----
> From: Chris Flemetakis [mailto:cflemeta@hotmail.com]
> Sent: 26 September 2001 16:13
> To: ant-user@jakarta.apache.org
> Subject: Re: tarfileset
> 
> 
> not sure about this but you might want to specify your relative
> directory 
> either with a \ in front or .\
> 
> (e.g. \bin\nt\addappsignersecurity.bat or
> .\bin\nt\addappsignersecurity.bat 
> )
> 
> Also i noticed that the file extension is .bat.. could that be causing a
> 
> problem?
> 
> Anyways.. not sure if this is it but maybe you can try it..
> 
> Chris
> 
> 
> >From: SimonRichardson2@halifax.co.uk
> >Reply-To: ant-user@jakarta.apache.org
> >To: ant-user@jakarta.apache.org
> >Subject: tarfileset
> >Date: Wed, 26 Sep 2001 12:37:53 +0100
> >
> >I'm using ant 1.3!
> >
> >I'm having problems with the tarfileset trying to include / exclude
> files
> >relative to my work directory however I get the following error (I've
> also
> >tries a few other combinations which result in a "nothing to do", but
> no
> >error):
> >
> >c:\ssab\XML\ssab.xml:116: Problem creating TAR:
> >bin\nt\addappsignersecurity.bat (The system cannot find the path
> specified)
> >--- Nested Exception ---
> >java.io.FileNotFoundException: bin\nt\addappsignersecurity.bat (The
> system
> >cannot find the path specified)
> >	at java.io.FileInputStream.open(Native Method)
> >	at java.io.FileInputStream.<init>(FileInputStream.java:64)
> >	at java.io.FileInputStream.<init>(FileInputStream.java:95)
> >	at org.apache.tools.ant.taskdefs.Tar.tarFile(Tar.java:239)
> >	at org.apache.tools.ant.taskdefs.Tar.execute(Tar.java:218)
> >	at org.apache.tools.ant.Target.execute(Target.java:153)
> >	at org.apache.tools.ant.Project.runTarget(Project.java:898)
> >	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> >	at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> >	at org.apache.tools.ant.Main.runBuild(Main.java:421)
> >	at org.apache.tools.ant.Main.main(Main.java:149)
> >
> >The target for this is as follows:
> >
> ><target name="tar_source" depends="init,archive">
> >	<!-- tar the source -->
> >	<mkdir dir="${ssab.distributionLatest}"/>
> >	<tar longfile="gnu"
> >		tarfile="${ssab.distributionLatest}/ss-src.tar">
> >		<tarfileset dir="${ssab.workDir}/">
> >			<include name="**"/>
> >			<exclude name="classes/**"/>
> >			<exclude name="clientcfg/**"/>
> >			<exclude name="servercfg/**"/>
> >			<exclude name="lib/ss.jar"/>
> >		</tarfileset>
> >	</tar>
> ></target>
> >
> >Regrds
> >
> >Simon
> >
>
>---------------------------------------------------------------------------
> ---
> >Halifax plc, Registered in England No. 2367076.  Registered Office:
> Trinity
> 
> >Road, Halifax, West Yorkshire HX1 2RG. Represents only the Halifax 
> >Financial Services Marketing Group for the purposes of advising on and 
> >selling life assurance, pensions and unit trust business.  The
> Marketing 
> >Group is regulated by the Personal Investment Authority.  Switchboard
> 01422
> 
> >333333.
> >
>
>===========================================================================
> ===
> >
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
> 
> 
>
------------------------------------------------------------------------------
> Halifax plc, Registered in England No. 2367076.  Registered Office:
> Trinity Road, Halifax, West Yorkshire HX1 2RG. Represents only the
> Halifax Financial Services Marketing Group for the purposes of advising
> on and selling life assurance, pensions and unit trust business.  The
> Marketing Group is regulated by the Personal Investment Authority. 
> Switchboard 01422 333333.
> 
>
==============================================================================
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com

Mime
View raw message