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
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
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
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
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
>
Hello,
--- Narahari 'n' Savitha <[EMAIL PROTECTED]> wrote:
> Consider this scenario friends.
>
> build.xml
> |
> |lib
> |
>
> |--averyveryverylong.jar
>
> |--anotherlongjarfile.jar
>
> now when I
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
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
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
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
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
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
Hello
--- Oliver <[EMAIL PROTECTED]> wrote:
>
>
>
>
Please, try with the the following snippet:
>
>
>
>
i.e. captitalize Test to TEST.
Regards
Ivan
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
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
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.
>
> ___
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
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
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
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.
>
>
>
>
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
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
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
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
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
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
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
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
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:
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
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:
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]
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
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
34 matches
Mail list logo