Re: Ant System Class Loader does not honor $CLASSPATH, honors $LOCALCLASSPATH

2013-03-26 Thread Rainer Noack
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

Re: ANT 'javac' task and 'fork' attribute

2013-01-31 Thread Rainer Noack
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

Re: Which javac does ant use in its "javac" task?

2013-01-16 Thread Rainer Noack
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

Re: passing ant.java.version as an option

2012-11-05 Thread Rainer Noack
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

Re: Unable to run Ant

2012-10-09 Thread Rainer Noack
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

Re: Classpath for taskdef'd tasks

2012-06-10 Thread Rainer Noack
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

Re: difference between unzip task and unzip executable

2011-11-07 Thread Rainer Noack
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

Re: Problems with classloader

2011-07-29 Thread Rainer Noack
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

AW: sql task output suppressing a column

2010-12-01 Thread Rainer Noack
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

AW: AntClassLoader and the system classloadr.

2010-09-14 Thread Rainer Noack
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

AW: Classloading with ANT in taskdefed tasks

2010-03-30 Thread Rainer Noack
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

AW: Taskdef and classpath

2010-03-30 Thread Rainer Noack
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

AW: (resent) Defined task fails to find base class of task

2008-03-28 Thread Rainer Noack
/ (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

AW: How to display the classpath that Ant is using to launch the java task?

2008-02-27 Thread Rainer Noack
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

AW: classpath order wierdness

2007-11-21 Thread Rainer Noack
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

AW: How do I set a classpath for my custom task?

2007-11-21 Thread Rainer Noack
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

AW: Can we load task into Ant Core classloader

2007-10-18 Thread Rainer Noack
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

AW: Showing current classpath Ant is using in Build executing state

2007-10-07 Thread Rainer Noack
... 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]

AW: ant-1.6.5; need to add tools.jar to system classpath

2007-09-13 Thread Rainer Noack
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.

RE: Specifying additonal classpath elements when calling the task

2007-03-01 Thread Rainer Noack
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.

RE: ant and classloading

2006-10-16 Thread Rainer Noack
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

RE: Class not found in taskdef

2006-08-21 Thread Rainer Noack
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

RE: javac multiple packages

2006-07-20 Thread Rainer Noack
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

RE: ant javac uses rt.jar even though it isn't in classpath

2006-06-18 Thread Rainer Noack
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

RE: Setting and debugging class paths

2006-05-17 Thread Rainer Noack
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

RE: taskdef classpath problem

2005-12-30 Thread Rainer Noack
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

RE: Custom type query

2005-12-28 Thread Rainer Noack
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

RE: Using the bootclasspath

2005-12-28 Thread Rainer Noack
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 ->

RE: Checking classpath enteries --from ant script

2005-12-20 Thread Rainer Noack
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

RE: Class loader problem

2005-09-24 Thread Rainer Noack
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!

RE: Problem concerning classpath priority (I think)

2005-09-19 Thread Rainer Noack
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

RE: Class loader problem

2005-09-16 Thread Rainer Noack
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

RE: multiple excludes clause ??

2005-09-07 Thread Rainer Noack
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

RE: custom classloader for a task

2005-09-01 Thread Rainer Noack
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

RE: Manifestations

2005-07-03 Thread Rainer Noack
> -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

RE: Manifestations

2005-06-30 Thread Rainer Noack
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

RE: Problem with dual classloader.

2005-05-30 Thread Rainer Noack
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

RE: Problem with dual classloader.

2005-05-25 Thread Rainer Noack
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

RE: Re: ANT Configuration

2005-05-18 Thread Rainer Noack
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

RE: nontrivial dependencies

2005-05-18 Thread Rainer Noack
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

RE: [property] Multiline ?!

2005-05-18 Thread Rainer Noack
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

RE: nontrivial dependencies

2005-05-18 Thread Rainer Noack
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

RE: properties not being reset

2005-04-28 Thread Rainer Noack
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

RE: properties not being reset

2005-04-28 Thread Rainer Noack
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

RE: classpath for custom Ant tasks

2005-04-13 Thread Rainer Noack
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

RE: classpath for custom Ant tasks

2005-04-13 Thread Rainer Noack
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

RE: Question regarding Ant custom task

2005-04-10 Thread Rainer Noack
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

RE: Question regarding Ant custom task

2005-04-07 Thread Rainer Noack
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

RE: Overview on usage of if/unless attributes

2005-04-06 Thread Rainer Noack
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] >

RE: A memory problem in ant or build.xml

2005-04-02 Thread Rainer Noack
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

RE: AW: how to read from an enviroment variable

2005-03-21 Thread Rainer Noack
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

RE: Creating new JARs based on property change

2005-03-16 Thread Rainer Noack
> 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

RE: Creating new JARs based on property change

2005-03-16 Thread Rainer Noack
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

RE: custom taskdef requires Ant classloading of external JARs

2005-02-22 Thread Rainer Noack
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