Re: Classpath generation (migrating from old to new)

2020-03-25 Thread Stefan Bodewig
On 2020-03-24, Pennington, Dale wrote: > The particular issue is the classpath generated. On the old system, the > classpath included all the local user defined .jars, as well as a large > number of jars from /usr/share/java, that were not specified in the build.xml > file. The new

Classpath generation (migrating from old to new)

2020-03-24 Thread Pennington, Dale
Java 1.8.0_222. The particular issue is the classpath generated. On the old system, the classpath included all the local user defined .jars, as well as a large number of jars from /usr/share/java, that were not specified in the build.xml file. The new system only has the local user defined jars

Re: How to find out the classpath used to load a custom task

2018-12-09 Thread Al Le
s are called     for (String arg : programArgumentsList) {     cmdLine.createArgument().setValue(arg);     }     return javaTask;     } My problem is that I also have to set the classpath attribute for the internal Java task. And I'd like to set it automatically to the s

How to find out the classpath used to load a custom task

2018-12-08 Thread Al Le
methods are called for (String arg : programArgumentsList) { cmdLine.createArgument().setValue(arg); } return javaTask; } My problem is that I also have to set the classpath attribute for the internal Java task. And I'd like to set it automatically t

Re: Excluding classpath jars from %ANT_HOME%\lib?

2015-03-17 Thread Earl Hood
On Tue, Mar 17, 2015 at 12:01 PM, Josh Hoff wrote: > I guess a new question would be: how can I debug the classpath when > building and testing? Use the -d option to enable debug logging. You will get a ton of output, and it is likely the output will contain information you are interes

Re: Excluding classpath jars from %ANT_HOME%\lib?

2015-03-17 Thread Josh Hoff
Hmm, it seems like I was mistake. All that's in %ANT_HOME%\lib is ant tasks for junit, and but not junit jars themselves. I also checked the freshly built jar, and it doesn't seem to have any extra junit jars. I guess a new question would be: how can I debug the classpath when bu

Re: Excluding classpath jars from %ANT_HOME%\lib?

2015-03-16 Thread Earl Hood
_HOME%\lib conflicting with the one I got from ivy, but I can't find > where (if anywhere) %ANT_HOME%\lib is added to the classpath. Check the documentation section "Running Apache Ant". According to the docs, you should be able to use -lib options to specify additional director

Excluding classpath jars from %ANT_HOME%\lib?

2015-03-16 Thread Josh Hoff
an't find where (if anywhere) %ANT_HOME%\lib is added to the classpath. Suggestions? - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

RE: Need help with ANT javac classpath

2014-09-16 Thread Martin Gainty
> From: webservices_developm...@csx.com > To: user@ant.apache.org > Subject: RE: Need help with ANT javac classpath > Date: Tue, 16 Sep 2014 14:19:47 + > > �I think I may not have articulated my problem correctly MG>for 6 weeks this summer I was answering all que

RE: Need help with ANT javac classpath

2014-09-16 Thread WebServices Development
other jars used by the application. -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Monday, September 15, 2014 5:39 PM To: Ant Users List Subject: RE: Need help with ANT javac classpath > From: webservices_developm...@csx.com > To: user@ant.apache.org >

RE: Need help with ANT javac classpath

2014-09-15 Thread Martin Gainty
> From: webservices_developm...@csx.com > To: user@ant.apache.org > Subject: RE: Need help with ANT javac classpath > Date: Mon, 15 Sep 2014 16:06:55 + > > Thanks. > > This is a common build script that we have, so I didn't add fork for the > javac task -

RE: Need help with ANT javac classpath

2014-09-15 Thread WebServices Development
AM To: Ant Users List Subject: Re: Need help with ANT javac classpath On Mon, Sep 15, 2014 at 5:15 PM, WebServices Development < webservices_developm...@csx.com> wrote: > P.S - I tried adding includejavaruntime="false" and > includeantruntime="false" a

Re: Need help with ANT javac classpath

2014-09-15 Thread Dominique Devienne
On Mon, Sep 15, 2014 at 5:15 PM, WebServices Development < webservices_developm...@csx.com> wrote: > P.S - I tried adding includejavaruntime="false" and > includeantruntime="false" attributes - both together as well as > individually - to the javac task - but I still get the error. The error >

Need help with ANT javac classpath

2014-09-15 Thread WebServices Development
preference. I have not included the jars from JAVA_HOME in my javac task's classpath. How can I set-up my javac task such that my project will still compile with ANT as it does in Eclipse? P.S - I tried adding includejavaruntime="false" and includeantruntime="false

Re: ClassLoader classpath of a TaskDef'd task

2014-04-15 Thread Edoardo Vacchi
lasses *during* the execution of the task > itself. These classes are actually the same jar of the task implementation. > > Now, if I put my jars in ~/.ant/lib the task works. If I use > > ... > > > where classpath points to the ./lib/* folder of the project, the task *is*

ClassLoader classpath of a TaskDef'd task

2014-04-15 Thread Edoardo Vacchi
I use ... where classpath points to the ./lib/* folder of the project, the task *is* found, but the classloader fails to load the classes. I suppose that ant is changing the classloader for the task's thread. How can I pass the information down to the task's classloader? thanks

Re: @classpath

2013-04-10 Thread Peter West
Thank you all. I see I was instantly swamped with responses. Sign of a good list. Peter West "Have you believed because you have seen me? Blessed are those who have not seen and yet believe." On 10/04/2013, at 11:37 PM, Peter West wrote: > Where can I find documentation for usage like > >

Re: @classpath

2013-04-10 Thread Peter West
Ok, it's a macro expansion. When you forget things like this, they are extremely difficult to track down. Peter West "Have you believed because you have seen me? Blessed are those who have not seen and yet believe." On 10/04/2013, at 11:37 PM, Peter West wrote: > Where can I find documentat

RE: @classpath

2013-04-10 Thread Milliken, Rob
Google xpath or xslt -Original Message- From: Peter West [mailto:li...@pbw.id.au] Sent: Wednesday, April 10, 2013 9:37 AM To: user@ant.apache.org Subject: @classpath Where can I find documentation for usage like ? Likewise for the other uses of "@"? Thanks. Peter West

Re: @classpath

2013-04-10 Thread Peter Reilly
It is described in: http://ant.apache.org/manual/Tasks/macrodef.html On Wed, Apr 10, 2013 at 2:37 PM, Peter West wrote: > Where can I find documentation for usage like > > ? > > Likewise for the other uses of "@"? > > Thanks. > > Peter West > > "Have you believed because you have seen me? Bl

Re: @classpath

2013-04-10 Thread Vimil Saju
Those are macrodef attributes. Look for macrodefs in ant's manual From: Peter West To: user@ant.apache.org Sent: Wednesday, April 10, 2013 6:37 AM Subject: @classpath Where can I find documentation for usage like ? Likewise for the other us

@classpath

2013-04-10 Thread Peter West
Where can I find documentation for usage like ? Likewise for the other uses of "@"? Thanks. Peter West "Have you believed because you have seen me? Blessed are those who have not seen and yet believe." - To unsubscribe, e-

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

2013-03-27 Thread Edoardo Vacchi
hread().getContextClassLoader(); The context class loader seems to actually honor -lib and $CLASSPATH On Wed, Mar 27, 2013 at 9:07 AM, Edoardo Vacchi wrote: > On Tue, Mar 26, 2013 at 11:43 PM, Rainer Noack wrote: > >> if you're launching ant via shell script, it is using >> oata.launc

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

2013-03-27 Thread Edoardo Vacchi
On Tue, Mar 26, 2013 at 11:43 PM, Rainer Noack wrote: > if you're launching ant via shell script, it is using > oata.launcher.Launcher.java > > This class reorganises the classpath a bit. [...] Hi Rainer, then how can I pass to the new ClassLoader a custom classpath? (which is

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

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

2013-03-26 Thread Edoardo Vacchi
Hi to everybody on the list, I am forwarding the question I've asked on stackoverflow http://stackoverflow.com/questions/15383099/ant-system-class-loader-does-not-honor-classpath-honors-localclasspath as I did not have any feedback in several days. I hope I will find an answer here. Than

Re: Changing my ant classpath

2013-02-25 Thread Peter West
ed fine yesterday, but today I installed a > newer version of Java and now ant throws this error: > > ant --execdebug > exec "/usr/lib/jvm/jdk1.7.0_15/jre/bin/java" -classpath > "/usr/lib/ant-launcher.jar" -Dant.home="/usr" -Dant.library.dir="/

Changing my ant classpath

2013-02-25 Thread Carbonari, Katie - 0336 - MITLL
I'm trying to run ant. It worked fine yesterday, but today I installed a newer version of Java and now ant throws this error: ant --execdebug exec "/usr/lib/jvm/jdk1.7.0_15/jre/bin/java" -classpath "/usr/lib/ant-launcher.jar" -Dant.home="/us

FW: Using jdk 1.6 wildcard in classpath using Ant 1.8.4

2013-01-10 Thread Prakash, Dharma
Hi, I am trying to load external library by using jdk1.6 wild card syntax in Ant 1.8.4 and I get the below error, can anyone help me how to resolve this issue? Below is my error and build script I am using.. Buildfile: C:\CCSTG\Workspace_V7\AntBuildTest\build.xml init: compile: [echo]

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-08 Thread Steve Amerige
Hi Nicolas and all, On 8/7/2012 3:58 PM, Nicolas Lalevée wrote: Then, only speaking for myself and not for the Ant committers, I don't think "reverse" behavior to be ugly. We gain a fine control of the classloading, just like we do while using inheritance in Java. And considering Ant backward

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-07 Thread Nicolas Lalevée
ation, reverseloader looks cleaner than this task. > If there is a better way to give my classpath priority other than the > *reverseloader *trick, can someone provide example code that works in both > Ant 1.7 and 1.8 (even if conditional code is used) so that I get it right? I don'

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-07 Thread Steve Amerige
ter way to give my classpath priority other than the *reverseloader *trick, can someone provide example code that works in both Ant 1.7 and 1.8 (even if conditional code is used) so that I get it right? Many thanks! Steve Amerige SAS Institute, Deployment Developer *build.xml:*

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Peter West
Failing that, define propertysets with the properties you need to propagate, then invoke ant via a java task with a fork, and the set of environment variables you want (including classpath.) Peter West "...you will find rest for your souls. For my yoke is easy, and my burden is light.&qu

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Nicolas Lalevée
Le 6 août 2012 à 14:37, Steve Amerige a écrit : > Some more info on this problem: > > The issue is is a ClassLoader delegation model > <http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html> > problem. If the classpath has in it a path to Groovy 1.7.10

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Steve Amerige
Some more info on this problem: The issue is is a ClassLoader delegation model <http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html> problem. If the classpath has in it a path to Groovy 1.7.10 (as it does), then even if I explicitly add the classpath in Ant as I do

How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-03 Thread Steve Amerige
Hi all, My Ant script is being called with an environment including the classpath that includes the folder containing the groovy-all-1.7.10.jar file. I want to execute Groovy 2.0 code from my Ant script. I cannot change any aspect of how my Ant script is called. I must limit my solution

Re: Classpath for taskdef'd tasks

2012-06-10 Thread Peter West
e tests affectively mirror what users of the distribution will >> be doing. >> >> When I do not have the generated jar in the startup classpath for the build, >> I can generate the jar file, define the tasks in terms of the jar file's >> classes, and begin to

Re: Classpath for taskdef'd tasks

2012-06-10 Thread Rainer Noack
then runs a series of tests on the distribution that will include that jar. The tests affectively mirror what users of the distribution will be doing. When I do not have the generated jar in the startup classpath for the build, I can generate the jar file, define the tasks in terms of the jar f

Classpath for taskdef'd tasks

2012-06-10 Thread Peter West
artup classpath for the build, I can generate the jar file, define the tasks in terms of the jar file's classes, and begin to execute particular taskdef'd tasks. All good, and the classes are discovered. However, within the executing task, other classes from the jar are required. The atte

Re: How to avoid long classpath issue in windows

2012-04-03 Thread vijayaratha vijayasingam
Hi Jarek; Thanks for the help.. I fixed it using *"Manifestclasspath task"*, which is used to avoid long classpath issue... I have written a small blog[1] entry with the sample for others reference.. http://vvratha.blogspot.com/2012/04/avoiding-long-classpath-issue-in-ant.html Thanks -

Re: How to avoid long classpath issue in windows

2012-04-02 Thread Jarek Czekalski
guess not, it's the issue with java command line. Jarek Thanks -Ratha On 2 April 2012 15:47, Jarek Czekalski wrote: You could unpack part of the jars and use the directory containing classes as a classpath. Later you may put them into a single jar. For compilation it's safe. For distrib

Re: How to avoid long classpath issue in windows

2012-04-02 Thread vijayaratha vijayasingam
12 15:47, Jarek Czekalski wrote: > You could unpack part of the jars and use the directory containing classes > as a classpath. Later you may put them into a single jar. For compilation > it's safe. For distribution there may be licensing issues, depending on the > libraries involved. &g

Re: How to avoid long classpath issue in windows

2012-04-02 Thread Jarek Czekalski
You could unpack part of the jars and use the directory containing classes as a classpath. Later you may put them into a single jar. For compilation it's safe. For distribution there may be licensing issues, depending on the libraries involved. Jarek W dniu 2012-04-02 11:47, vijaya

Re: How to avoid long classpath issue in windows

2012-04-02 Thread vijayaratha vijayasingam
? On 2 April 2012 10:39, vijayaratha vijayasingam wrote: > Hi all; > Im facing a long classpath issue in windows with my build.xml. > If i define the

derby Classpath issue

2012-01-19 Thread Knuplesch, Juergen
Hello, I was creating an ANT-task that is using derby.jar as jdbc driver. I put derby.jar in the front of the classpath of my task. But every time I tried to reload sth. into my derby database it failed: sth. like "JDBC driver not found" Yesterday I found a workaround for my p

Re: Zipfileset on classpath

2011-06-16 Thread Matt Benson
On Thu, Jun 16, 2011 at 10:48 AM, Jeff Crump wrote: > Hi, > > I would like to set up my JUnit classpath to include all of the jars in a > given zip file.  I'm using Ant 1.8.2. Everything I read tells me this ought > to work... > > > > >   >       >   &

Zipfileset on classpath

2011-06-16 Thread Jeff Crump
Hi, I would like to set up my JUnit classpath to include all of the jars in a given zip file. I'm using Ant 1.8.2. Everything I read tells me this ought to work... but verbose/debug output is telling me it's not finding the jars in the Zip: dropping /path/to/my.zip:

Re: 'classpath url' in settings

2011-04-20 Thread Nicolas Lalevée
Le 19 avr. 2011 à 17:08, Felix Drueke a écrit : > Can anyone confirm that the " http://ant.apache.org/ivy/history/latest-milestone/settings/classpath.html > actually works with IvyDE under Windows? > > I got it to work with ant and with IvyDE in Eclipse under Linux, but it > doesn't > work unde

Re: setting classpath

2011-04-20 Thread Nicolas Lalevée
Le 18 avr. 2011 à 15:56, Felix Drueke a écrit : > Hi, > > I think the usual procedure to set the classpath via Ivy is to use the > cachepath-task. > So I assume the following is a very common structure: > > > > > > >

Re: Execution classpath question for taskdef

2011-02-22 Thread tstrall
I would concur that with Ant 1.8 the classpath which is being used in the taskdef definition does not seem to be the same as the classpath used for executing the task later. In my case the taskdef is: But when the task is called it returns the error: java.lang.ClassNotFoundException

Re: Ant + Spring = classpath purgatory

2011-02-01 Thread Antoine Levy-Lambert
onContext = new ClassPathXmlApplicationContext( "/com/foo/ApplicationContext.xml"); I see an error that the resource com/foo/ApplicationContext.xml cannot be found on the classpath. The XML file, together with the application code, happen to be in the same JAR as the task it

Re: Ant + Spring = classpath purgatory

2011-01-29 Thread Mitch Gitman
> ApplicationContext applicationContext = new >> ClassPathXmlApplicationContext( >> "/com/foo/ApplicationContext.xml"); >> >> I see an error that the resource com/foo/ApplicationContext.xml cannot be >> found on the classpath. The XML file, to

Re: Ant + Spring = classpath purgatory

2011-01-29 Thread Mitch Gitman
; ClassPathXmlApplicationContext( > "/com/foo/ApplicationContext.xml"); > > I see an error that the resource com/foo/ApplicationContext.xml cannot be > found on the classpath. The XML file, together with the application code, > happen to be in the same JAR as the

Ant + Spring = classpath purgatory

2011-01-28 Thread Mitch Gitman
text = new ClassPathXmlApplicationContext( "/com/foo/ApplicationContext.xml"); I see an error that the resource com/foo/ApplicationContext.xml cannot be found on the classpath. The XML file, together with the application code, happen to be in the same JAR as the task itself.

Re: Execution classpath question for taskdef

2011-01-20 Thread Antoine Levy-Lambert
ow do I add the classloader task to my custom task? My custom task > resembles ... No, you probably do not need this classloader task for selenium. > > > > > classname="com.criticalmass.util.ant.SeleniumRunner" > cla

Re: Execution classpath question for taskdef

2011-01-20 Thread dave.alvarado
, - Dave > ---Original Message--- > From: Antoine Levy-Lambert > To: Ant Users List > Subject: Re: Execution classpath question for taskdef > Sent: Jan 19 '

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
Martin87 ├─> > F 19.01.11 13:51+0100 Michael Ludwig75 └─> The classpath attribute or nested element of taskdef works but cannot solve the case of some classes loaded by factories of the JVM (JDBC drivers, mail.jar, activation.jar). These classes have to be either in the

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 3:26 PM, dave.alvar...@cartridgeorder.com wrote: > Let me ask this clarification question before answering yours ... > > 1. The taskdef "classpath" attribute is NOT what is used when the taskdef is > actually executed. Correct? Wrong, the classpath nested elemen

Re: Execution classpath question for taskdef

2011-01-19 Thread dave.alvarado
Let me ask this clarification question before answering yours ... 1. The taskdef "classpath" attribute is NOT what is used when the taskdef is actually executed. Correct? The output of what I get from running my custom task is below. Note that the NoClassDefFoundError is complaini

Re: Execution classpath question for taskdef

2011-01-19 Thread Michael Ludwig
dave.alvar...@cartridgeorder.com schrieb am 19.01.2011 um 13:30 (-0600): > I have discovered that the "classpath" and "claspathref" elements that > are part of the taskdef are not used during run time Are you sure? How did you discover that? There was another thread

Execution classpath question for taskdef

2011-01-19 Thread dave.alvarado
Hi, I'm using Ant 1.8. I have created a custom task, but I need to include a jar file in the classpath when this task is exected. How do I include such a jar file? I'm using Ant 1.8. Here is the definition o

RE: Proper way to translate list of jars from properties file into classpath

2010-10-19 Thread Bailey, Darragh
> -Original Message- > From: KARR, DAVID (ATTSI) [mailto:dk0...@att.com] > Sent: 13 October 2010 21:05 > To: Ant Users List > Subject: Proper way to translate list of jars from properties > file into classpath > > I have a property defined in my properties file

Re: Proper way to translate list of jars from properties file into classpath

2010-10-19 Thread Antoine Levy-Lambert
On 10/14/2010 5:09 PM, KARR, DAVID (ATTSI) wrote: -Original Message- From: KARR, DAVID (ATTSI) Sent: Wednesday, October 13, 2010 1:05 PM To: Ant Users List Subject: Proper way to translate list of jars from properties file into classpath I have a property defined in my properties

RE: Proper way to translate list of jars from properties file into classpath

2010-10-16 Thread Moore, Kent
We define each reference in a single line of build.properties, then in build.xml do an amalgamation of the references into different patternsets which have different meanings. That gives us the flexibility to use some references in the build time classpath, but not include them in the war/ear

RE: Proper way to translate list of jars from properties file into classpath

2010-10-14 Thread KARR, DAVID (ATTSI)
> -Original Message- > From: KARR, DAVID (ATTSI) > Sent: Wednesday, October 13, 2010 1:05 PM > To: Ant Users List > Subject: Proper way to translate list of jars from properties file into > classpath > > I have a property defined in my properties file that spe

RE: .project and .classpath

2010-10-13 Thread prakash.sivakumar
Thank you very much brian, I tried using the sample in my project and it worked out. Thanks a lot. -Original Message- From: Brian Pontarelli [mailto:br...@pontarelli.com] Sent: Wednesday, October 13, 2010 8:21 PM To: Ant Users List Subject: Re: .project and .classpath I tend to use

Proper way to translate list of jars from properties file into classpath

2010-10-13 Thread KARR, DAVID (ATTSI)
point, I'm not certain of the elements that I need to get these jars properly referenced in a top-level path element so I can reference it as the classpath for javac. I imagine it involves using the "filelist" element. I tried this: Then: ...

Re: .project and .classpath

2010-10-13 Thread Brian Pontarelli
org.eclipse.jdt.core.javanature The second part that outputs the .classpath file might need some additional elements to specify the location of the log4j JAR file. -bp On Oct 13, 2010, at 8:21 AM, wrote: > Can you please send me a sam

RE: .project and .classpath

2010-10-13 Thread prakash.sivakumar
Can you please send me a sample, how the target would look like, Consider only the log4j need to be in my classpath and the nature of my project is just JAVA nature. Thanks Prakash S -Original Message- From: Brian Pontarelli [mailto:br...@pontarelli.com] Sent: Wednesday, October 13

Re: .project and .classpath

2010-10-13 Thread Brian Pontarelli
The main purpose of the .project file is to set the project name and the main purpose of the .classpath file is to set the dependencies. It really depends on what you need, but I would suggest that checking those files into source control would make life simpler. Or if you want to build them

RE: .project and .classpath

2010-10-13 Thread prakash.sivakumar
:29 PM To: Ant Users List Subject: Re: .project and .classpath This depends on your dependency management tool. If you are using Savant, Ivy or Maven, it is pretty simple to write a target that generates these files. -bp On Oct 13, 2010, at 3:36 AM, wrote: > > > "mvn clean c

Re: .project and .classpath

2010-10-13 Thread Brian Pontarelli
tes the following eclipse configuration files: > .project and .classpath files > .setting/org.eclipse.jdt.core.prefs with project specific compiler > settings > .various configuration files for WTP (Web Tools Project), if the > parameter > wtpversion is set to a valid version (WTP co

.project and .classpath

2010-10-13 Thread prakash.sivakumar
"mvn clean compile install eclipse:eclipse" Generates the following eclipse configuration files: .project and .classpath files .setting/org.eclipse.jdt.core.prefs with project specific compiler settings .various configuration files for WTP (Web Tools Project), if the parameter wtpvers

AW: How to set new PATH, CLASSPATH and JAVA_HOME for whole build.xml?

2010-07-22 Thread Knuplesch, Juergen
Just use a Batch or shellfile, that calls Ant. Before you call Ant you set your environment. -Ursprüngliche Nachricht- Von: Ben Stover [mailto:bxsto...@yahoo.co.uk] Gesendet: Donnerstag, 22. Juli 2010 09:28 An: Ant Users Betreff: How to set new PATH, CLASSPATH and JAVA_HOME for whole

How to set new PATH, CLASSPATH and JAVA_HOME for whole build.xml?

2010-07-22 Thread Ben Stover
Assume I have multiple Java installations and versions on my computer. Due to other reasons I have to set java installation1 as default in my environment variables PATH, CLASSPATH and JAVA_HOME. Beside the main application I would like to do some other compilations and tasks with/from Ants

Re: Importing Ant build files on the classpath with Maven

2010-05-10 Thread Frank Wilson
> > The mailing list manager strips attachments, please add it to the > bugzilla report. > Done. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Importing Ant build files on the classpath with Maven

2010-05-10 Thread Stefan Bodewig
On 2010-05-10, Frank Wilson wrote: > Somewhat more siginificant is the change to ant. To support this mechanism > we need to be able inherit references in the file being called by the > "Ant" task. > I would like to ask if this tweak to the ant task code is a good idea and > whether there is any

Importing Ant build files on the classpath with Maven

2010-05-10 Thread Frank Wilson
I've been looking at various ways of importing other ant buildfiles from the classpath to reduce coupling in my multimodule build. This would allow me to checkout only the code and build files I intend to change. I've been looking at using Maven to facilitate this. My solution uses the

Re: importing ant targets from the classpath

2010-05-09 Thread Frank Wilson
>>Von: Frank Wilson [mailto:fajwil...@gmail.com] >>Gesendet: Donnerstag, 6. Mai 2010 17:59 >>An: user@ant.apache.org >>Betreff: importing ant targets from the classpath >> >>I would like to import ant build targets from the classpath. In >>otherwords, I

AW: importing ant targets from the classpath

2010-05-07 Thread Jan.Materne
>From the manual: Jan >-Ursprüngliche Nachricht- >Von: Frank Wilson [mailto:fajwil...@gmail.com] >Gesendet: Donnerstag, 6. Mai 2010 17:59 >An: user@ant.apache.org >Betreff: importing ant targets from the classpath > >I would like to

RE: importing ant targets from the classpath

2010-05-06 Thread Martin Gainty
ebernehmen. > Date: Thu, 6 May 2010 16:59:19 +0100 > Subject: importing ant targets from the classpath > From: fajwil...@gmail.com > To: user@ant.apache.org > > I would like to import ant build targets from the classpath. In > otherwords, I am looking for an equivalent of th

importing ant targets from the classpath

2010-05-06 Thread Frank Wilson
I would like to import ant build targets from the classpath. In otherwords, I am looking for an equivalent of the "import" task, which brings files not from the filesystem, but from the classpath (and hence possibly from a jar). I doesn't seem to me that this is possible with the

Re: Custom task with classpath and exclusion

2010-04-22 Thread Stefan Bodewig
On 2010-04-22, Blaise Gervais wrote: > exclusions.createExcludesFile().setName(entry.path.getPath()+File.separatorChar+exclusion); In a fileset an excludesfile is a text file that contains an exclusion pattern per line. I don't think you really want this but createExclude(), > And the output :

Custom task with classpath and exclusion

2010-04-22 Thread Blaise Gervais
Hi everyone, I'm writing one custom Ant Task who create a classpath. This task can also exlued files from the class path. But I'm unable to excludes files from the Path because the path t the excluded file is wrong. Here is my code : > FileSet exclusions = new FileSet(); Syste

Re: Proposal to have an Ant task to resolve ecllipse projects' classpath dependencies at runtime.

2010-04-07 Thread Gilbert Rebhan
Original Message Subject: Re: Proposal to have an Ant task to resolve ecllipse projects' classpath dependencies at runtime. From: Ravi Roy To: Ant Users List Date: 07.04.2010 15:38 [...] >>> Since people love Ant and also Eclipse being an standard

Re: Proposal to have an Ant task to resolve ecllipse projects' classpath dependencies at runtime.

2010-04-07 Thread Ravi Roy
On Sun, Apr 4, 2010 at 10:43 PM, Gilbert Rebhan wrote: > Original Message > Subject: Proposal to have an Ant task to resolve ecllipse projects' > classpath dependencies at runtime. > From: Ravi Roy > To: user@ant.apache.org > Date: 04

Re: Proposal to have an Ant task to resolve ecllipse projects' classpath dependencies at runtime.

2010-04-04 Thread Gilbert Rebhan
Original Message Subject: Proposal to have an Ant task to resolve ecllipse projects' classpath dependencies at runtime. From: Ravi Roy To: user@ant.apache.org Date: 04.04.2010 11:05 > Hi, [...] > Since people love Ant and also Eclipse being an standard IDE

Proposal to have an Ant task to resolve ecllipse projects' classpath dependencies at runtime.

2010-04-04 Thread Ravi Roy
features are concerned. Since people love Ant and also Eclipse being an standard IDE, I feel at times that there should be a Ant task which could read the .classpath and .project files and provide and kind of property which has resolved classpath entries on which project depends on. This task would

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: Knuplesc

Taskdef and classpath

2010-03-30 Thread Knuplesch, Juergen
Hello, I have an ANT-task that I call inside my buildfiles. I have access to the source of this task. I have problems with elements on the classpath, because I use different XML-parsers. How can I define my task in a way, that there are only the elements on its classpath (e.g. the xml parser

AW: How to print out resulting classpath from a classpath variable?

2009-12-13 Thread Knuplesch, Juergen
Hello, Maybe you have a problem with the compile classpath in Eclipse. You have to export all the jars you need to compile the stuff In Eclipse. There is a checkbox for every jar in the "Order and export" tab of your classpath. If you have classpaths inside your jars things are even

RE: How to print out resulting classpath from a classpath variable?

2009-12-11 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] > Sent: Friday, December 11, 2009 9:04 AM > To: Ant Users List > Subject: AW: How to print out resulting classpath from a classpath > variable? > > Hello > > By the way

AW: How to print out resulting classpath from a classpath variable?

2009-12-11 Thread Knuplesch, Juergen
Hello By the way: I use ant4eclipse to get the same classpath as Eclipse. I do it this way (I think Steve showed me that): classpath is a refid of a path -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: KARR, DAVID (ATTCINW) [mailto:dk0

How to print out resulting classpath from a classpath variable?

2009-12-11 Thread KARR, DAVID (ATTCINW)
I'm trying to debug a problem with an Ant script executing differently between the command line and Eclipse. It comes down to Eclipse not seeming to get the same classpath as on the command line. I define the classpath that a task (OpenJPA PCTaskEnhancer) needs with an embedded "

Ignore Classpath in MANIFEST the 2nd

2009-12-09 Thread Sebastian Altmann
Hi everybody, i defined a classpath in my ant-file which is used for compiling. This classpath countains a lib called XXX.jar for example. In the Manifest of XXX.jar there is declared a classpath containing e.g. dom4j.jar. If i run my compile target now i get a warning: bad path element

Ignore Classpath in MANIFEST

2009-12-09 Thread Sebastian Altmann
Hi everybody, i defined a classpath in my ant-file which is used for compiling. This classpath countains a lib called XXX.jar for example. In the Manifest of XXX.jar there is declared a classpath containing e.g. dom4j.jar. If i run my compile target now i get a warning: [directory where

classpath problem with jsch

2009-11-21 Thread Johannens Zillmann
Dear ant users, i have a problem using the ant's Scp in my custom ant task. When executing my custom ant task (via ant) i get a ClassNotFoundException: com/jcraft/jsch/UserInfo. But the class is definitely in the classpath. Using this class in my custom task directly (before accessin

AW: Classpath and taskdef

2009-11-17 Thread Knuplesch, Juergen
: Dienstag, 17. November 2009 15:32 An: Ant Users List Betreff: RE: Classpath and taskdef javap bytecode listing of xercesImpl.jar which i have that is packaged with $ANT_HOME/lib/xercesImpl.jar 09/08/2009 07:16 PM 1,223,877 xercesImpl.jar public class

RE: Classpath and taskdef

2009-11-17 Thread Martin Gainty
Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Subject: Classpath and taskdef > Date: Tue, 17 Nov 2009 13:49:31 +0100

Classpath and taskdef

2009-11-17 Thread Knuplesch, Juergen
it seems, Zhat the Ant xml parser is used. Is Ant adding his own classpath to the classptah of the task? Or any other idea? [dope-task] 398.) Font: C0N400Z0 -1 (durch Datei-Version -1 ersetzt.) [dope-task] 399.) JavaScript: DJSF9236 -1 (durch Datei-Version -1 ersetzt.) [dope-task] 400.) Font

  1   2   3   4   5   6   7   8   >