That's not a thing we don't want to do.
But we are lacking the knowledge of building Eclipse plugins on actual Eclipse
versions.
So don't expect that to come in the near future.
But that's only my personal view
Jan
> -Ursprüngliche Nachricht-
> Von: JOSE LUIS MARTINEZ-AVIAL GONZALEZ-CEL
Simple solution
Another possibility is using a template file and
.
The simple solution is based on your "requirement"
> Replace:
> 12467abc => 34567abc
> 12467def => 34567def
> 12467xyz => 34567xyz
For heavy xml modifications you could use th
Try the outputproperty or errorproperty of the exec task.
Maybe this is related to you
https://ubuntuforums.org/showthread.php?t=1464940
I don't know mate-terminal. But you can't use itself?
Jan
> -Ursprüngliche Nachricht-
> Von: Игорь Бобров [mailto:ne...@yandex.ru]
> Gesendet: Monta
Just for beautifying the log: you could specify a 'taskname'
So you get a
[update-db-tables] ...
instead of
[exec] ...
Jan
> -Ursprüngliche Nachricht-
> Von: Eric Fetzer [mailto:elstonk...@yahoo.com.INVALID]
> Gesendet: Donnerstag, 29. August 2019 16:04
> An: user@ant.apache.or
Betreff: Re: Skipping a javah task with Java 10 and higher
>
> Thanks much for your help! The javaversion condition works perfectly.
>
>
> Rei Odaira
>
> 2019年5月7日(火) 0:58 Jan Matèrne (jhm) :
>
> > With xml namespaces like if:set you could exclude individu
With xml namespaces like if:set you could exclude individual tasks.
http://ant.apache.org/manual/ifunless.html
...
Jan
> -Ursprüngliche Nachricht-
> Von: Jaikiran Pai [mailto:jaiki...@apache.org]
> Gesendet: Dienstag,
I am not sure if you could check the response headers.
The manual shows an example how to add a MD5 checksum test after a
download (macro "get-and-checksum").
Maybe the best way is to implement your own download in Java (reusing Get's
sourcecode, or use a http lib).
Or I haven't got your poin
On 2/20/2019 3:22 PM, Jan Matèrne (jhm) wrote:
If you have created you
> > >
> > >
> > >
> > >
> > >
> > > ...
> > > > > timeout="@{timeout}"/>
> > >
> > > The first one fails because the reference is defined after
> > > , and the second one doesn&
https://search.maven.org/remotecontent?filepath=org/apache/logging/log4j/log4j-api/2.11.2/log4j-api-2.11.2.jar";
dest="${lib.dir}/log4j-api-2.11.2.jar" />
8-<--8-<--8-<--8-<--8-<--
> -Ursp
Not sure why you want to wrap an existing Ant task ...
If you want to provide default settings, you could use
Jan
> -Ursprüngliche Nachricht-
> Von: Isaac Jurado [mailto:dipto...@gmail.com]
> Gesendet: Sonntag, 24. Februar 2019 18:27
> An: Ant Users List; gudnabr...@gmail.com
> Betreff:
/2019 3:22 PM, Jan Matèrne (jhm) wrote:
If you have created your JAR the first step is done.
Starting the JAR could be done in several ways. Common is that you have to have
all external classes o
If you have created your JAR the first step is done.
Starting the JAR could be done in several ways. Common is that you have to have
all external classes on the runtime classpath:
1. Hard coded start script.
Write a bash/bat-Script with the java command with all cp settings, e.g. (bat)
@ech
eff: Re: AW: Javac Run By Ant Script is Unable to Find External
> Jars
>
> Hi Jan,
>
> Thanks. Things are starting to come together in my head. If I
> understand, ant doesn't need the Eclipse .classpath at all and only the
> classpath suggested by Matt is used by ant, right?
Matt is correct: you are mixing Eclipse and Ant definitions.
So here some points by me:
* There is no default behaviour of . You have to specify the paths the
compiler should use by yourself.
* means, that the file or directory
".classpath" should be used for classpath. But the .classpath-file i
> We use ant internally in our build systems and heavily use sshexec/scp
> and ssh tasks. These rely on jsch which is an external library. Now
> that there is Apache Mina is there a way to move away from jsch to
> apache mina? Jsch project is not very active, so we were looking for an
> alternative
Could you post your buildfile snippet and the build output?
Jan
> -Ursprüngliche Nachricht-
> Von: Jose M Urena [mailto:jose.ur...@verizon.com]
> Gesendet: Freitag, 3. August 2018 15:02
> An: Ant Users List
> Betreff: Re: [E] Javac: Command-Line Argument Files
>
> the following suggestio
Sorry for not having the right time to digg into your solution.
Two workaround come into my mind:
1. Copy your whitelisted files into a tmp directory, delete the whole src
directory and copy the whitelisted files back
2. Use to convert your whitelist to an excludes-clause and use
Jan
You should also check your $ANT_OPTS and remove the -XMaxPermSize=512m.
The output sais, that Java8 does not support that anymore and so you'll get rid
off this message.
Jan
> -Ursprüngliche Nachricht-
> Von: govind nitk [mailto:govind.n...@gmail.com]
> Gesendet: Mittwoch, 18. April 2018
There are two main pages for releases:
* https://www.apache.org/dist/: actual releases
* http://archive.apache.org/dist/: all releases
The release policy [1] of the ASF enforces to have only the newest versions on
the first.
This is the primary directory for mirrors. Usually users are interested i
CVE-2017-5645: Apache Ant 1.9.9 and 1.10.1 - Apache Log4j 1.2.13 security
vulnerability
Severity: low
Vendor: The Apache Software Foundation
Versions Affected:
Apache Ant 1.9.0 - 1.9.9
Apache Ant 1.10.0 - 1.10.1
The unsupported Apache Ant 1.8 and lower versions are also affected.
De
You could specify the ivy.jar-location via -lib option.
ant -lib path/to/ivy.jar myTarget
Or you could specify it _in_ your buildfile, like in
http://ant.apache.org/ivy/history/latest-milestone/samples/build.xml
Jan
> -Ursprüngliche Nachricht-
> Von: Dawid Weiss [mailto:dawid.we..
Not sure, if this is the right one.
Did you have a look at ant-javafx.jar?
I have found that in JDK-1.8.0_77/lib and it contains an AntLib definition
at
com\sun\javafx\tools\ant\antlib.xml
Jan
>
You could play that way:
* use to transform that peace into a 'valid Ant buildfile'
* use to call that generated file
Jan
> -Ursprüngliche Nachricht-
> Von: Alexander Levin [mailto:a.le...@gmx.de]
> Gesendet: Montag, 5. Juni 2017 01:39
> An: Ant Users List; Jan M
I dont know any easy way.
Simplest thing would be writing that kind in Java.
And if you dont want to download that jar from your buildfile you could the jar
creation inline:
- generate the code ()
- compile ()
- archive that ()
- include that ()
Via
With that macro definition you also could use the other available nested
elements:
Jan
> -Ursprüngliche Nachricht-
> Von: Stefan Bodewig [mailto:bode...@apache.org]
> Gesend
You could try to use a custom logger which detects that password and masks
it.
Because Ant can't distinguish if an is 'just' an argument or a
password, there is no built-in solution.
Jan
> -Ursprüngliche Nachricht-
> Von: Stefan Bodewig [mailto:bode...@apache.org]
> Gesendet: Samstag, 25
nice
Jan
Von: j...@dogsplayingpoker.org [mailto:j...@dogsplayingpoker.org] Im Auftrag
von Joe's Diner Webmaster
Gesendet: Samstag, 14. Januar 2017 01:33
An: user@ant.apache.org
Betreff: New PropertyHelper to Easily Add Colors to Ant Output
Here is a little PropertyHelper I wrote that e
I just had a look at the source code.
There is a special handling for HTTP-ResponseCodes for
- MOVED --> follow redirect if specified
-- 301: Moved Permanently
-- 302: Temporary Redirect
-- 303: See Other
-- 307: Temporary Redirect
- HTTP_NOT_MODIFIED (304 Not Modified) --> dont download i
The Ant PMC voted [1] to archive the EasyAnt subproject and all its modules.
This means that all its resources are removed or made read only and no
further development will be done.
It also means that, if a community grows, the subproject could reactivated
[2].
Happy new year
Jan Matèrne,
You could write one buildfile and copy it 100times.
Or use :
the "master" buildfile is available e.g. on a share.
The 100+ projects only have a
So they could set some individual values.
Jan
> -Ursprüngliche Nachricht-
> Von: Scot P. Floess [mailto:sflo...@nc.rr.com]
> Gesendet:
If I understand your requirements right, you want to delete recursively all
directories which contain a marker file.
So maybe you could use this (have a deeper look at the task).
Jan
Could you use a ?
Jan
> -Ursprüngliche Nachricht-
> Von: Al Le [mailto:al...@gmx.de]
> Gesendet: Donnerstag, 20. Oktober 2016 12:08
> An: user@ant.apache.org
> Betreff: How to delete all files in a dirset
>
> Hello,
>
> I have a dirset defined in my script. How can I delete all files
>
Try
task.setOwningTarget( self.getOwningTarget() );
'self' is referencing the task and the new created instance will get
its owning target.
Jan
> -Ursprüngliche Nachricht-
> Von: Al Le [mailto:al...@gmx.de]
> Gesendet: Di
Something like that?
Jan
ant -Dantcontrib.jar=path/to/ant-contrib-1.0b3.jar
-Dagent.list="node1,node2" -Dnode1.description=ServerA
-Dnode2.description=AnotherServer
starting Agent @{agent}: @{description}
hack
> the build.
> So if the build is already done, the ship might have already left the
> shore :D
>
> I expected some task in ant to analyze the build files instead of
> running build, which might give the enough information of my
> requirement :-/
>
> On Wed, Nov 18, 201
Hacking is always ... surprising ;) as you use APIs in way they weren't
intended for.
But it makes fun :O
I am not sure if you can get these information during runtime.
But collecting during a build and analyzing afterwards could be possible using
a custom BuildListener.
With that you get all me
class
file.
Jan
> -Ursprüngliche Nachricht-
> Von: Jan Matèrne (jhm) [mailto:apa...@materne.de]
> Gesendet: Dienstag, 3. November 2015 17:36
> An: 'Ant Users List'
> Betreff: AW: Class size
>
> Next idea is using different compile flags, e.g. debug.
>
K.
>
> On Tue, Nov 3, 2015 at 6:16 AM, Jan Matèrne (jhm)
> wrote:
>
> > Are you sure that Maven and Ant are using the same JDK?
> >
> > Jan
> >
> > > -Ursprüngliche Nachricht-
> > > Von: aalok singhvi [mailto:aaloksing...@gmail.com]
Are you sure that Maven and Ant are using the same JDK?
Jan
> -Ursprüngliche Nachricht-
> Von: aalok singhvi [mailto:aaloksing...@gmail.com]
> Gesendet: Sonntag, 1. November 2015 22:34
> An: Maven Users List; Ant Users List
> Betreff: Class size
>
> Hello,
> I have a basic question...
>
Yes this is the right list.
We don't have a release plan - next release comes when we (the PMC) decide to
release one.
Could be 1-2 years after the last release (like 1.9.5), could be just few weeks
(like 1.9.6) -
depends of the changes.
2.0 would be a version with massive changes in the archi
The manifest task is available as and is part of the core Ant
distribution.
The definition is in org\apache\tools\ant\taskdefs\defaults.properties
manifest=org.apache.tools.ant.taskdefs.ManifestTask
That class is in ant.jar.
Googling for "build_tools.jar" gave me just this hint:
http://discour
I dont know that task.
Where does it come from?
Jan
> -Ursprüngliche Nachricht-
> Von: Martin Gainty [mailto:mgai...@hotmail.com]
> Gesendet: Montag, 7. September 2015 14:11
> An: us...@ant.apache.org; Ant Users List
> Betreff: RE: build_tools.jar missing
>
>
>
> From: mgai...@hotmail.
You also could use the AntLib-Props.
There is no official release, but you could use the CI-build.
https://builds.apache.org/view/All/job/AntLib-props/lastSuccessfulBuild/artifact/distribution/binaries/
For usage you should have a look at the unit tests
https://git-wip-us.apache.org/repos/asf?p=an
vent.getMessage();
> >if (!msg.contains(IGNORE_MSG_PATTERN)) {
> >super.messageLogged(event);
> >} else {
> >System.out.println("tools-message suppressed");
> >}
> >}
> >
> > }
> >
&g
} else {
System.out.println("tools-message suppressed");
}
}
}
> -Ursprüngliche Nachricht-
> Von: Earl Hood [mailto:earlh...@gmail.com]
> Gesendet: Dienstag, 28. April 2015 07:38
> An: Ant Users List
> Betreff: Re: tools.jar not found
>
Ant is a build tool. For some tasks (for example javac, javadoc) the tools
from the Java _Development_ Kit are required.
If you run with just a Java _Runtime_ Environment most of its tasks could be
used, but not all - hence the warning.
Set your JAVA_HOME to the installation path of your JDK.
htt
I would provide several jars:
- application-core.jar: contains the application and the interfaces
- application-activemq.jar: contains the interface implementations for
ActiveMQ
- application-hornetq.jar ...
The approach you'll try to achieve (as I understand that) is having a "full
jar" for each
This unit test passes under Ant 1.9.5alpha and 1.9.4.
Jan
> -Ursprüngliche Nachricht-
> Von: Ryan Payton [mailto:rpay...@tibco.com]
> Gesendet: Freitag, 5. Dezember 2014 03:13
> An: user@ant.
Have you tried to unzip the war manually using another program?
Jan
> -Ursprüngliche Nachricht-
> Von: KM [mailto:info...@yahoo.com.INVALID]
> Gesendet: Freitag, 24. Oktober 2014 17:17
> An: Himanshu Gusain; Ant Users List
> Betreff: Re: exception expanding war file
>
> we've already che
There is no star team support built in in Ant.
So you have to install it for yourself via taskdef [1] or antlib [2].
StarTeam tasks are available in the Ant sandbox [3] (you have to build that
from source) from
sourceforge [4] and maybe from the manufacturer of star team.
Searching for "starteam
ant-core\src\tests\junit\org\apache\tools\ant\BuildFileRule.java
This file 'should' be contained in the ant-testutil.jar.
But because of a missing statement it was not, thanks for
pointing.
Next nightly should contain the compiled class
https://builds.apache.org/view/A-D/view/Ant/job/Ant_Nightly
I could reproduce the problem.
You are trying to refer to a private API, see
http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html
I could load the class via reflection (Class.forName) but not via direct
reference.
While searching I found some hints:
https://svn.forgerock.org/opend
I wouldnt use a platform specific 'cp' command.
Why dont you use ?
Another point is that your '*' is not resolved by 'cp', this is resolved by
the shell interpreter.
Maybe this would work
Jan
> -Ursprüngliche Nachricht-
> Von: GARCIA PER
The problem is the usetimestamp="false" which disables the local check.
And because its hard written in the (generated) code you can't "overwrite"
that with a .
I did a test with this buildfile:
- usetimestamp=false: loads everytime all artifacts (just the mkdir will run
once)
- usetimestamp=true:
The fileset needs a project instance.
getDS() is a short cut for getDS(getProject()) and your getProject() would
return null.
see:
https://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/an
t/types/AbstractFileSet.java
supports nested filesets so a view here would be a starting
I would use several properties files and load the one needed for the current
environment.
Jan
> -Ursprüngliche Nachricht-
> Von: Cyril Sagan [mailto:cyril.sa...@gmail.com]
> Gesendet: Donnerstag, 12. Dezember 2013 00:08
> An: Ant Users List
> Betreff: Is it possible to get "location se
p.s.: Thanks Scot for your aid ;)
Jan
> -Ursprüngliche Nachricht-
> Von: Jan Matèrne (jhm) [mailto:apa...@materne.de]
> Gesendet: Samstag, 30. November 2013 10:52
> An: 'Ant Users List'
> Betreff: AW: AW: AW: problem with ftp
>
> If someone comes with a pr
If someone comes with a problem and points to place where he think the sticking
point is, I usually want to make my own picture. Maybe I see the same problem,
maybe not. But there is a reason why someone stops at a certain point. And
often enough I had seen that the real problem is "some lines b
> and i specifically stated:
> > > I have absolutely NO variables in my macrodef.
I could see that. But the error message "Syntax error in property:" make me
thought that something is wrong with properties.
> "checkAntCommons" and "checkJakartaOro" check for the libraries that
> are required f
My first thought is that you are setting a property with a strange name.
Could you run with "-d"? Maybe the debug output gives more hints.
While just reading the macrodef I couldnt find something suspect ...
You are calling checkAntCommons and checkJakartaOro targets. I dont know what
happens ther
Why do you want to upgrade to 1.7.0 (19.12.2006) instead of 1.9.2
(12.07.2013)?
If the 1.7.0 would contain an error it would not be fixed ...
Jan
> -Ursprüngliche Nachricht-
> Von: Ed Mansky [mailto:man...@mindspring.com]
> Gesendet: Dienstag, 12. November 2013 15:33
> An: user@ant.apache
My first thought was, that you are using a very old Ant version.
http://ant.apache.org/faq.html#history :
Ant 1.7.1: 27.06.2008
Ant 1.9.2: 12.07.2013
My second thought was, that your Ant installation might be corrupted ...
Jan
> -Ursprüngliche Nachricht-
> Von: Ani [mailto:aniruddh
The problem is not in or in the used InputHandler.
This log is produces on a completely other place.
The InputHandler reads silently your passwort.
The input task does not log the pwd, it just stores the value on the project
instance.
This storing is finally done by a PropertyHelper which then lo
Deleting all Annotations would be one part.
Maybe this could be done with s and regexps.
Not sure if this approach would help with removing the generics ...
Jan
Von: Raja Nagendra Kumar [mailto:nagendra.r...@tejasoft.com]
Gesendet: Samstag, 24. August 2013 12:18
An: user@ant.apache
or display the full command exec is about
> to run?
>
> Thanks for the reply.
> Could you tell me in Eclipse how to configure ant to run in "-verbose"
> mode?
>
> -Original Message-
> From: Jan Matèrne (jhm) [mailto:apa...@materne.de]
> Sent: 2013年8月20
Run Ant in "-verbose" mode.
Jan
> -Ursprüngliche Nachricht-
> Von: Vincent Cai [mailto:w...@cypress.com]
> Gesendet: Dienstag, 20. August 2013 08:51
> An: user@ant.apache.org
> Betreff: how do I "echo" or display the full command exec is about to
> run?
>
>
> This message and any attach
One side note: you are using 1.8.2 (Dec 2010) and I suggest updating to
1.9.1 (Jul 2013).
http://ant.apache.org/faq.html#history
> Ok, got one step further:
> now i have:
>
>
>
>
>
>
>
> classname="org.apache.tools.ant.antlr.ANTLR3"
> classpathref
I downloaded the antlr.zip and had a look.
In the ant-antlr3.jar there is the antlib.xml at your location.
If all classes are present you could try using the taskdef from that antlib
file:
and remove your xmlns declarations.
Jan
> -Ursprüngliche Nachricht-
> Von: Ernst Reissner [mai
>From Ants test directory:
snippet from the buildfile
xsl
http://www.w3.org/1999/XSL/Transform";
version="1.0">
xml
http://chemical/brothers";
>
in the absence of technology, the
Maybe the antlib is not on the classpath?
For loading antlibs via namespaces from custom classpath see
http://ant.apache.org/manual/Types/antlib.html#loadFromInside
Jan
> -Ursprüngliche Nachricht-
> Von: Ernst Reissner [mailto:rei3...@arcor.de]
> Gesendet: Mittwoch, 7. August 2013 15:16
>
My idea is reading the SGML file using some filterchains and regexps for
extracting the DTD-name.
But I dont know any way to inject that into .
So the workaround here is iterating over the for yourself
- antcontrib: for, foreach
- loop using script (bsh, groovy, javascript) inside the buildfile
You cannot reconfigure the logger Ant uses.
You have to start a complete new Ant instance.
Jan
sample:
Call via 'ant'
Call via 'java'
TestNG is not supported by Ant directly.
So you have to declare the task and its location.
See
http://testng.org/doc/ant.html
So place a e.g. after tag.
But I would change a little bit more ...
Jan
n of that in antunit jar.
>
> I was after a solution that did _not_ require any additional
> dependencies.
>
> Peter West
>
> "When the Spirit of truth comes, he will guide you into all the
> truth..."
>
> On 15/05/2013, at 3:54 PM, Jan Matèrne (jhm)
Have you tried Ant Props?
http://ant.apache.org/antlibs/props/index.html
https://svn.apache.org/repos/asf/ant/antlibs/props/trunk/src/tests/antunit/s
tringops-test.xml
- testReplaceFirst
- testReplaceAll
- testPackageMapping
Jan
> -Ursprüngliche Nachricht-
> Von: Peter West [mailto:li...@
> void test2() {}
> > }
> >
> > now I'd like to only test the "test2" with ant command line like
> this:
> > ant -Dtest=TestService -Dtestcase=test2 test-target Then how to write
> > the build.xml?
> >
> > Thanks
> >
> >
&g
Basic idea is
- specify the test to run via command line property (-Dtestcase=...)
- test-targets depends on two targets running a single test or the whole test
suite
- that two targets are conditional according to that property
Jan
> -Ursprüngliche Nachricht-
> Von: Matt Ben
ting not working?
>
> Thanks Jan,
>
> I check out the project to 2 different locations. Hence the build file
> resides in 2 different locations. yet, the basedir is the same in both
> locations. This results in a failed build in one location.
>
>
>
> On Thu, Apr 18
The "." in the basedir attribute is relative to the buildfile itself, not
the current directory.
You could access that via ${user.dir} :
BaseDir: ${basedir}
UserDir: ${user.dir}
You can't set that value as basedir because at the time when basedir is set,
the system properties aren't pop
> Sorry. I am not getting your point. I am trying to use the
> projectSetImport to get the project names from the build.psf which is
> below.
>
>
>
> Loaded projects = ${ImportedProjectNames}
>
Have a look at the documentation
http://publib.boulder.ibm.com/infocenter/radhelp/v8
> I am able to checkout the projects directly in ant script using cvs
> commands but i need an sample for the following requirement. Please
> help.
>
> Need to run build.xml ant script with project name as argument. Ihe
> script should take the build.psf and needs to checkout the required
> projec
82 matches
Mail list logo