Re: Accessing the manifest within a jar file

2006-10-30 Thread Ivan \"Rambius\" Ivanov
Hello, You can also use Ant 1.7 zipentry resource: Regards Ivan --- Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > Hello Michael, > > this is an interesting question. > > I would write my own custom Ant task . You can use > java.util.jar.JarFile > and java.util.jar.Manifest to access wha

Re: continue processing build after a failure?

2006-07-24 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, You can use instead of to call your build scripts. According to docs [1] it supports failonerror attribute. I think by default it is true, but you can set it to false. Regards Ivan [1] http://ant.apache.org/manual/CoreTasks/subant.html --- John Davis <[EMAIL PROTECTED]> wrote: > Hell

Re: How can I change file permission on Windows using ANT?

2006-07-23 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- samuel cheung <[EMAIL PROTECTED]> wrote: > How can I change file permission to read only on > Windows using ANT? > The core ant task that I read only support on Unix? What about - http://ant.apache.org/manual/OptionalTasks/attrib.html? Regards Ivan P.S. An offtopic question: is the

Re: Ant help for c compiler

2006-07-11 Thread Ivan \&quot;Rambius\&quot; Ivanov
Steve, Is it possible to publish the chapters that are in the first edition but will be excluded from the second edition on the book's site? Regards Ivan --- Peter Reilly <[EMAIL PROTECTED]> wrote: > On 6/29/06, Steve Loughran <[EMAIL PROTECTED]> > wrote: > > > > > > > > I should point out that

Re: Unix commads behaving different in Ant task

2006-05-05 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- Venkat Kotu <[EMAIL PROTECTED]> wrote: > Hi, > > > > I have a situation where in I need to find all the > .jar files in a > directory and write it to a temp file. You can use a pure Ant solution using and : ${jar.files} > The command from the prompt is : find myDir/*.jar >

Re: file list without directory prepended how to get it

2006-05-05 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- Narahari 'n' Savitha <[EMAIL PROTECTED]> wrote: > Consider this scenario friends. > > build.xml > | > |lib > | > > |--averyveryverylong.jar > > |--anotherlongjarfile.jar > > now when I

Re: junitreport error: ClassNotFoundException: redirect

2006-05-04 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, Can you post the relevant parts of your build script mainly the part with task? Regards Ivan --- Dave Rathnow <[EMAIL PROTECTED]> wrote: > Hi, > > > > I've searched the archives and Googled this error > but I can't find the > solution. > > > > I'm using Ant 1.6.5, Java 1.4.1 and

RE: junitreport error: ClassNotFoundException: redirect

2006-05-04 Thread Ivan \&quot;Rambius\&quot; Ivanov
are produced by . > >todir="c:/temp/report/html"/> > > Regards Ivan > > -----Original Message- > From: Ivan "Rambius" Ivanov > [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 04, 2006 12:10 AM > To: Ant Users List

Re: junitreport error: ClassNotFoundException: redirect

2006-05-03 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, Can you post the relevant parts of your build script mainly the part with task? Regards Ivan --- Dave Rathnow <[EMAIL PROTECTED]> wrote: > Hi, > > > > I've searched the archives and Googled this error > but I can't find the > solution. > > > > I'm using Ant 1.6.5, Java 1.4.1 and

RE: Create a file that contains files in directory

2006-04-19 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- "Guttula, Mohan" <[EMAIL PROTECTED]> wrote: > The issue was with relative path in the base > directory. i.e., > > > Issue is resolved by using IVAN suggestion which is > as follows: > - > > - Defining location of files and dirs with location attribute comes vary handy when

RE: Create a file that contains files in directory

2006-04-19 Thread Ivan \&quot;Rambius\&quot; Ivanov
to="*"/> > > ${all.files} > > > > > > Regards, > Mohan > > -Original Message- > From: Guttula, Mohan > Sent: Wednesday, April 19, 2006 3:35 PM > To: Ant Users List > Subject: RE: Create a fi

Re: Create a file that contains files in directory

2006-04-17 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, Here is a sample script that does this: ${all.files} Note that allfiles.txt will contain the absolute locations of the files. If you need relative ones you may want to use mappers: Regards Ivan --- "Guttula, Mohan" <[EMAIL PROTECTED]> wr

Re: junit report problem

2006-04-16 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello --- Oliver <[EMAIL PROTECTED]> wrote: > > > > Please, try with the the following snippet: > > > > i.e. captitalize Test to TEST. Regards Ivan

Re: junit report problem

2006-04-16 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello Oliver, Please post your usage of and . Regards Ivan --- Oliver <[EMAIL PROTECTED]> wrote: > Hi, folks, > > I have a pretty regular junit report setup. > All the individual Test-*.xml are generated. > However, the transformed > xml is just empty. I have xalan.jar in ant/lib, and > ant s

Re: Ant task to replace special characters

2006-03-28 Thread Ivan \&quot;Rambius\&quot; Ivanov
en <[EMAIL PROTECTED]> wrote: > Thanks Ivan. > > it seems that both or > requires a file as an input. In my case, i just want > to format the string with some replaceable > token(s). > > --- "Ivan \"Rambius\" Ivanov" > <[EMAIL PROTE

Re: Ant task to replace special characters

2006-03-28 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, Perhaps you need or tasks. Regards Ivan --- Thod Nguyen <[EMAIL PROTECTED]> wrote: > is there a simple way in build.xml to replace for > instance, a filename foo.bar(1).memory with > foo.bar_1.memory using one of the existing Ant task > ? > > Thanks > T.N. > > ___

Re: how to return a String object in custom Ant

2006-03-27 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- Thod Nguyen <[EMAIL PROTECTED]> wrote: > I'm writing a custom Ant and i would like to return > a > String object in the void execute() method, what is > the best way to do this? I suppose you mean to return it to the build process from your custom Ant task. In this case, you may use

Re: Task to count files in a fileset?

2006-03-26 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, I got interested and I wrote a sample build script, following Matt's instructions: ${aaa.xml.files} ${count.xml.files} Regards Ivan --- Matt Benson <[EMAIL PROTECTED]> wrote: > --- Rick Genter <[EMAIL PROTECTED]> wrote: > > > Fellow ant-users, > > > > Is

Re: Ant task to handle HTTPResponse status code (HELP!!!)

2006-03-23 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, I suppose you will need a fully fledged http client like Jakarta Commons HttpClient[1]. Sending any http request using its API is pretty easy. Then you can encapsulated the request and the status handling in a task/scriptdef. I noticed once a conversation in ant-user or ant-dev about http

Re: Getting relative pathes in a for loop

2006-03-21 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, In your case you can use to get the name of the file. For more sophisticated operations on paths you may find useful with nested . Regards Ivan --- ar81 <[EMAIL PROTECTED]> wrote: > Hi all, > > When I write the following loop, I get absolute file > pathes. > > > >

RE: Generating property file with path name...

2006-03-06 Thread Ivan \&quot;Rambius\&quot; Ivanov
Or using ? Regards Ivan --- EJ Ciramella <[EMAIL PROTECTED]> wrote: > what's using the property in the property file? > > why not have "/" instead of "\"? > > If you MUST have "\", why not let your build finish, > then have another replace step to change "\" to > "\\"? > > -Original Mes

RE: Check if files exist in a folder before I tar

2006-02-28 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello --- Paul Faulstich <[EMAIL PROTECTED]> wrote: > > Is there a way to tell if a fileset is empty? If > so, he could just create a fileset based on that dir > and check it. I haven't found such a task if there > is one. Yes, there is a way to tell if a fileset is empty: use task with its se

Re: Detecting what OS you are running...

2006-02-23 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, here are some hints. 1) You can use os.name property to find the OS you are running on. 2) If you want to execute a native OS command only on the OS that supports it you can use task with os attribute. See [1] for more details. 3) If you want to run different targets depending on the os yo

Re: Special Ant-Javadoc for own tasks?

2006-02-21 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- David <[EMAIL PROTECTED]> wrote: > You can find more information from the following > web page: > > http://antdoc.free.fr/ AntDoc is used for documenting the very build scripts. I understood that the original requestor wanted a tool that generates docs from Java source file

Re: , but for paths...

2006-02-15 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello Matt, --- Matt Benson <[EMAIL PROTECTED]> wrote: > Ivan, > I had never read your entire article Oh, you have missed one of the most important knowledge in the world :) > as my own tests > with Thread-based input obscuration yielded > less-than-satisfactory results some years ago; Hm, I mad

Re: , but for paths...

2006-02-15 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, task does not read the user input. Instead it delegates the reading to InputHandlers [1]. In short you should write an extension of InputHandler and create the dialog in it. Then pass the fully qualified name of your input handler to -inputhandler option of ant launching script. I collecte

Re: test for directory existence

2006-02-15 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, and tasks take care of these details: Here, we are trying to delete a non-existing directory. Of course, deletes nothing but it executes successfully. Next, with the second invokation of we want to create a directory that already exists and creates nothing but it ex

Re: AW: AW: Way to refresh properties?

2006-02-14 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello Frank, --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > I don't know if it's the right way to do it, or if > there is some reason > not to do it this way, but I found a solution... I > took the contents of > the target that executed Antform and put it in a > macrodef... doing that, > th

Re: send email about status of the build

2006-02-07 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, In general you can send emails from Ant using task. However, it is not useful for emailing the status of the build, because the build may fail and stop before reaching the target with task, i.e. in case of failure you will not receive an email. --- Deep Chand <[EMAIL PROTECTED]> wrote:

Re: classpath and simultaneous builds

2006-02-05 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- Harshal Chavda <[EMAIL PROTECTED]> wrote: > Hello ant fraternity, > I am a beginner in ant(version > -1.6.3) First, I would suggest that you upgrade to the latest version of Ant which is 1.6.5. > and have > absolutely no knowledge of java(I can only write > very si

Re: problem with sql task

2006-02-05 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- Andrew Goktepe <[EMAIL PROTECTED]> wrote: > > and do this before running the script so that Ant > can find the driver class: > > set CLASSPATH=%CLASSPATH%;c:\path\to\classes12.jar This is correct, but it is more appropriate to use classpath attribute or nested classpath:

Re: Hiding target names during output

2006-02-01 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, Starting ant with -emacs option might be a choice as well. Regards Ivan --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > I would recommend a custom logger class. > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WAS Pyxis Lead Release Engineer > > > > > chuanjiang lo <[EMAIL PROTECTED]

Re: When is the next release?

2006-01-26 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello, --- Clifton Craig <[EMAIL PROTECTED]> wrote: > Does anybody have an idea about when the next > release of Ant is due? I'm > having some trouble getting 1.6.5 to work as I'm > getting an error: > Could not create task or type of type: scriptdef. > > Ant could not find the task or a class

RE: macrodef

2006-01-17 Thread Ivan \&quot;Rambius\&quot; Ivanov
Hello Paulo, it depends on the macrodef. I had a situation where I wrapped and in one macrodef since that piece of code was repeated several times. Later, it turned out that some invoka tions of that macrodef required different 's. So I added a macrodef element that allows passing different pro