Hi Edoardo,
if you're launching ant via shell script, it is using
oata.launcher.Launcher.java
This class reorganises the classpath a bit.
The env variable CLASSPATH and the classpath commandline argument are
stripped and replaced by the minimum classpath used to launch ant.
A child classloade
1.8.4 ( wildcards are supposed to be
allowed since Ant 1.8.2 )- here is what I have inferred. Can someone please
let me know, if the inference is correct or am I mis-guided soul here
- If you use 'fork' attribute in the 'javac' task, it uses javac of the jdk I am
run
Hi, just for your understanding:
Ant's javac task is not a compiler itself, but calls the specified
compiler (if not specified otherwise, the javac of the jdk you are
running ant with.)
BUT: In the most cases Ant is passing a resolved classpath to the compiler.
Regarding the specified order of
Hi Virgilio,
what do you want the ant.java.version for?
The property is defined to show the current java version and is working
properly (if the ant version is newer than the java version ... - ant
1.7.1 is older than JDK 7)
It's not a good idea to change that value.
if you just want to set t
Hi Vishal,
Sounds like launcher is not in you classpath.
The best way is to set 2 environment-variables before running ant:
JAVA_HOME that points to your JDK (or JRE if you don't need tools.jar) and
ANT_HOME that points to your ant installation directory.
see "Installing Apache Ant" (espacially
Maybe you will take a look at
http://enitsys.sourceforge.net/ant-classloadertask/
a little older, but works fine.
(classloaderreport is broken with ant 1.8.x)
Am 10.06.2012 11:54, schrieb Peter West:
I'm looking at a complex build that builds a jar file with a collection of
classes, then runs
Hi Justin,
sorry, but your question was a little hard to understand which might be
the reason, that you got no answer until now.
The reason for your problem is, that ant resolves path-like structures
when it is parsing the build.xml - file and drops irrelevant entries.
but your path only beco
Hi, depends on how you launch ant from java.
ant-style classpath reordering/resolution ("-lib option", ANT_HOME and
so on) is done in the Launcher.
If you just call Ant's Main class, you have to add the required jars in
your application's (system-)classpath.
Cheers
Rainer
Am 29.07.2011 16
Hmm, sounds like a driver problem (jdbc vs. Native) , not an ant issue.
-Ursprüngliche Nachricht-
Von: Laurence Mills-Gahl [mailto:elem...@gmail.com]
Gesendet: Mittwoch, 1. Dezember 2010 17:45
An: user@ant.apache.org
Betreff: sql task output suppressing a column
I am having difficulty wi
Take a look at the task from
http://enitsys.sourceforge.net/ant-classloadertask/
The easiest way might be, adding the classpath for your task to the
project classloader.
BTW: fails for ant 1.8+
Regards
rainer
-Ursprüngliche Nachricht-
Von: rafael...@gmail.com [mailto:rafael...@gmai
Take a look at the task in
http://enitsys.sourceforge.net/ant-classloadertask/
-Ursprüngliche Nachricht-
Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
Gesendet: Dienstag, 30. März 2010 16:19
An: Ant Users List
Betreff: Classloading with ANT in taskdefed tasks
Hello,
I
Hi,
If possible, you should encapsulate the task in a java program i.e. a public
static void main(String[] args]) method.
Then call this via java task with fork="true"
There you can specify the correct classpath.
Regards
Rainer
-Ursprüngliche Nachricht-
Von: Knuplesch, Juergen [mailto:j
/
(AFAIK they are not longer proposed for an ant release.)
Use the task immediately before using your task to find
out more about your classpathproblems.
The most simple usage for your problem is to add all your required classes
and jars to the "Project-Classloader".
Hope that helps.
Ra
maybe
http://enitsys.sourceforge.net/ant-classloadertask/
can help you.
cheers
rainer
-Ursprüngliche Nachricht-
Von: Fred Janon [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 27. Februar 2008 03:39
An: user@ant.apache.org
Betreff: How to display the classpath that Ant is using to lau
Take a look at http://enitsys.sourceforge.net/ant-classloadertask/
Cheers
Rainer Noack
-Ursprüngliche Nachricht-
Von: Hunter Peress [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 20. November 2007 02:36
An: Ant Users List
Betreff: classpath order wierdness
*First the build file
pathref, use new
AntClassLoader(getClass().getClassLoader(),getProject(),cp) to construct the
new classpath.
cheers
Rainer Noack
-Ursprüngliche Nachricht-
Von: todd runstein [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 21. November 2007 23:26
An: Ant Users List
Betreff: Re: How do I set a class
You can found that task at:
http://enitsys.sourceforge.net/ant-classloadertask/
cheers
Rainer Noack
-Ursprüngliche Nachricht-
Von: Steve Loughran [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 11. Oktober 2007 13:41
An: Ant Users List
Betreff: Re: Can we load task into Ant Core
... for some deeper information take a look at the task
at
http://enitsys.sourceforge.net/ant-classloadertask/
cheers
Rainer
-Ursprüngliche Nachricht-
Von: glenn opdycke-hansen [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 7. Oktober 2007 02:21
An: Ant Users List; [EMAIL PROTECTED]
Offline for some days...
Maybe,
http://enitsys.sourceforge.net/ant-classloadertask/
will solve your problem.
Cheers,
Rainer
-Ursprüngliche Nachricht-
Von: Vladimir Egorov [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 12. September 2007 17:47
An: Ant Users List
Betreff: RE: ant-1.6.
Maybe http://enitsys.sourceforge.net/ant-classloadertask/ what you are
looking for.
It allows you to add jars to the project-classloader.
cheers
Rainer
> -Original Message-
> From: David Corley (AT/LMI) [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 01, 2007 2:48 PM
> To: user@ant.
maybe [1] can help you with diagnostics.
rainer
[1] http://enitsys.sourceforge.net/ant-classloadertask/
> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 16, 2006 10:24 PM
> To: Ant Users List
> Subject: Re: ant and classloading
>
>
> Quotin
see below.
cheers
rainer
> -Original Message-
> From: Thierry Rietsch [mailto:[EMAIL PROTECTED]
> Sent: Sunday, August 20, 2006 4:52 PM
> To: user@ant.apache.org
> Subject: Class not found in taskdef
>
>
> Hi all
>
> I like to run the com.sun.tools.ws.WsGen tool from the
> build.xml
What's about ant-contrib's / task?
Rainer
> -Original Message-
> From: Chun Ji [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 20, 2006 12:00 AM
> To: Martin Gainty
> Cc: Ant Users List
> Subject: RE: javac multiple packages
>
>
>
> I have just tried, no difference.
> My jdk version
Sun's mechanism for your need is the Endorsed API override mechanism.
However, you should remember that you also need to take care of all those
manipulations
To run your program.
Eclipse allows you to do everything with your classpath as it has it's own
compiler.
Nevertheless you have to consider
Sorry for late respones. I was offline for some days. Maybe
http://enitsys.sourceforge.net/ant-classloadertask/
Is what you want - at least for debugging purposes.
Cheers
Rainer
> -Original Message-
> From: Tommy Nordgren [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 15, 2006 1:04 PM
Hi Gunnar,
After browsing a little bit through springworkframe's web-cvs IMHO the
problem is, that
org.springframework.core.io.DefaultResourceLoader - a baseclass of
ClassPathXmlApplicationContext -
is instantiated with it's default constructor, i.e. it uses the
ThreadContextClassloader to load r
Not really sure what you mean...
Take a look at http://ant.apache.org/manual/index.html -> Developing with
Ant
I often use this pretty simple pattern:
import java.util.Properties;
import org.apache.tools.ant.types.Parameter;
public class MyTask {
private Properties properties = new Propert
Hi Bill,
Typically one will set the bootclasspath via the extended jvm argument
-Xbootclasspath (see java tool documentation)
If you run ant via the the shell script you have to set jvm arguments via
the environment variable
ANT_OPTS
See http://ant.apache.org/manual/index.html -> Running Ant ->
Not sure what you mean...
However, you might want to take a look at
http://issues.apache.org/bugzilla/show_bug.cgi?id=28228
resp. http://jtools.org/ant-classloadertask/
Rainer
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 20, 2005
tting the following error:
>
> java.lang.VerifyError: (class:
> org/apache/tools/ant/types/URLPath, method:
> dieOnCircularReference signature:
> (Ljava/util/Stack;Lorg/apache/tools/ant/Project;)V) Bad
> access to protected data
>
> Any ideas?
>
> Thanks in advvance!
Hi,
did you try with includeAntRuntime="false" ?
Rainer
> -Original Message-
> From: Michael Böckling [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 19, 2005 3:20 PM
> To: user@ant.apache.org
> Subject: Problem concerning classpath priority (I think)
>
>
> Hello!
>
> I have a s
Hi Ken,
If you use with a classpath, the task will be loaded by a
newly created classloader that uses the project classloader as delegation
classloader.
(if you're using the distributed launch scripts, the project classloader is
a delegation
child of the System classloader).
The distributed task
Best practise is using nested elements.
Cheers
Rainer
> -Original Message-
> From: Rambo Mahajan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 07, 2005 3:21 PM
> To: user@ant.apache.org
> Subject: multiple excludes clause ??
>
>
> Hi
>
> I would like 2 excludes
Hi Jochen,
unfortunately, the displayed delegation hierarchy is typically not correct.
oata.AntClassLoader allways returns the System Classloader (class
sun.misc.Launcher$AppClassLoader) as its
parent.
See http://issues.apache.org/bugzilla/show_bug.cgi?id=35436
If you run ant from it's shell scr
> -Original Message-
> From: Dominique Devienne [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 30, 2005 10:39 PM
> To: 'Ant Users List'; [EMAIL PROTECTED]
> Subject: RE: Manifestations
>
>
> > 2) Main-Class: is used for the jar-version of running java.
> > (like: java myjar.jar)
> > (A
Hi Kai,
this is not really the correct list for this question.
however, the answer is pretty simple.
Both manifest entries are often used.
1) Class-path: lists "required" jars (typically if one application consists
of many jars).
Many classloaders evaluate this entry.
See sun's description of the e
e
> I can copy my jar and all libs into ANT_HOME\lib directory
> but it is not a way I'd like to solve my problem. Any other
> ideas how to force just one classloader? Tomek
>
> -Original Message-
> From: Rainer Noack [mailto:[EMAIL PROTECTED]
> Sent: Wed
Hi Tomasz,
could you try the following:
remove classpathref attribute from the typedefs (maybe in this case, the
classloader-ref will be replaced)
or
remove ALL loaderref attributes and set
prior to your taskdefs and typedefs.
cheers
Rainer
> -Original Message-
> From: Siwiec, Tomasz [ma
Ant works best with the following configuration.
CLASSPATH should be empty.
JAVA_HOME should be set to the root of your JDK installation.
ANT_HOME should be set to the root of your ANT installation
PATH needs to include %ANT_HOME%\bin (Win) resp. $ANT_HOME/bin (Unix)
(typically %JAVA_HOME%\bin res
y 18, 2005 3:57 PM
> To: Ant Users List
> Subject: RE: nontrivial dependencies
>
>
> - Rainer Noack wrote:
>
> > just a hint:
> > what's about 's if/unless attributes...
>
> Both and certainly have
> their uses. And I don't hesitate to use t
1. this list is for ant-related questions.
2. for property file format see java-api of java.util.Properties#load
you can use '\n' to "format" your property
> -Original Message-
> From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 18, 2005 1:22 PM
> To: user@ant.apac
Hi Michael,
just a hint:
what's about 's if/unless attributes...
BTW: How would you handle this in eclipse?
Cheers
Rainer
> -Original Message-
> From: Michael Cepek [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 17, 2005 11:17 PM
> To: user@ant.apache.org
> Subject: nontrivial dependencie
gt; >
> >> resultproperty="ivcommonResult">
> >
> -Original Message-
> From: George Dibi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 28, 2005 6:01 PM
> To: [EMAIL PROTECTED]
> Subject: RE: properties not
Properties are immutuable.
You can use the 's prefix-attribute to read the file the second
(or first/or both) time.
Cheers
Rainer
> -Original Message-
> From: George Dibi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 28, 2005 4:25 PM
> To: Ant Users List
> Subject: properties not b
way to print out the "special" classpath being
> used by an ant task?
>
> - Michael
>
> --- Rainer Noack <[EMAIL PROTECTED]> wrote:
> > Michael,
> > Java.class.path allways shows the System classpath (i.e.
> typically the
> > one you define vi
Michael,
Java.class.path allways shows the System classpath (i.e. typically the one
you define via $CLASSPATH plus ant/lib).
If you define a classpath in a , a "special" classloader is
created for your task.
In "normal" situations this should work as expected.
An ant-speciality: If an classpath ent
where in any method.
>
> Can you provide pseudo code or any example snippet for 2 and 3 ?
>
> I am new to ant world ?
>
> Eagerly awaiting your response to implement your suggestions.
>
> Thanks
> srikrishna
>
>
>
> -Original Message-
> From: R
Hi srikrishna,
1. What do you mean with a "global variable" in Java?
2. You can use Project.createTask("mail") to create a mailtask.
3. Another way (easier): set a ant-property with the value of j from inside
your javacode
and call the mailtask from your build script depending on the existence
Hi Holger,
1st: Ant properties can not be overwritten.
2nd: To set "conditional" property-values take a look at the
task.
3rd: if/unless are attributes of a target.
Try something like this:
Cheers,
Rainer
> -Original Message-
> From: Holger Rauch [mailto:[EMAIL PROTECTED]
>
Hi Mikael,
You can fork the big memory eaters (f.e. with your 1600 sourcefiles
or maybe ).
Then You can set up your main ant-process with just a small amount of memory
(xms and xmx)
And give the forked processes as much as they need.
Kind Regards
Rainer
> -Original Message-
> From: Mik
This is more a eclipse question.
However, I've take a look in my eclipse (3.1M5)
You can specify such properties globaly via
Windows->pref->ant->runtime->properties
or buildfile-specific via "build.xml"-contextmenu->run as->ant
build...->properties
Maybe this is working in 3.0 too.
Nevertheless
> Sent: Wednesday, March 16, 2005 5:52 PM
> To: Ant Users List; [EMAIL PROTECTED]
> Subject: Re: Creating new JARs based on property change
>
>
> On Wed, 16 Mar 2005, Rainer Noack wrote:
>
> > Remove the existing jar.
>
> Sure, but I only want to remove the ex
Remove the existing jar.
Cheers
Rainer
> -Original Message-
> From: Holger Rauch [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 16, 2005 4:43 PM
> To: user@ant.apache.org
> Subject: Creating new JARs based on property change
>
>
> Hi!
>
> In my build file I have a property telling
Hi Jeff,
It seems, something needs to be available in the SystemClassloader.
I'm not familiar with ssl in special but typically security sensitive
service-activation is either done explicitely by a System property or (by
default) from the first specially named resource in a META-INF directory
that
54 matches
Mail list logo