Re: Ivy won't set the classpath

2020-05-19 Thread Jaikiran Pai
dencies do work. > >> On May 18, 2020, at 19:11 , Rick Mann wrote: >> >> Hi there. For the life of me I can't get Ivy to set a classpath using >> cachepath (I wrote this up on SO, too: >> https://stackov

Re: Ivy won't set the classpath

2020-05-19 Thread Rick Mann
Update: This seems to happen when the dependency is only Other dependencies do work. > On May 18, 2020, at 19:11 , Rick Mann wrote: > > Hi there. For the life of me I can't get Ivy to set a classpath using > cachepath (I wrote this up on SO, too: > https://stackoverflo

Ivy won't set the classpath

2020-05-18 Thread Rick Mann
Hi there. For the life of me I can't get Ivy to set a classpath using cachepath (I wrote this up on SO, too: https://stackoverflow.com/questions/61869872/ant-ivy-wont-set-compile-classpath

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
on 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
) {     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 same classpath that was used for loading of my custom task (since

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

2018-12-08 Thread Al Le
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 same classpath that was used

Re: Difference in resolve classpath from 2.4.0 to 2.5.0-rc1 for jmock

2018-05-30 Thread Jaikiran Pai
/ivy/schemas/ivy.xsd "> >> >> >> >> >> >> >> >> >> build.xml: >> >> >> >> >> >> >> >> >> >> >> >&g

Difference in resolve classpath from 2.4.0 to 2.5.0-rc1 for jmock

2018-05-25 Thread Justin Vallon
Goal: Try to build a simple X.java with dependency on org.jmock/jmock and org.jmock/jmock-junit4. Trouble with ivy 2.5.0-rc1, but ok with 2.4.0: ivy.xml: http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd;>                  

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 building

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 interested

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

2015-03-16 Thread Earl Hood
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 directories Ant will look for jar files to include

Excluding classpath jars from %ANT_HOME%\lib?

2015-03-16 Thread Josh Hoff
(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 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 Subject: RE

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 MGfor 6 weeks this summer I was answering all questions in spanish.. I thought

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 attributes - both together

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 is -

RE: Need help with ANT javac classpath

2014-09-15 Thread WebServices Development
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 attributes - both together as well as individually

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 - as it would affect other builds as well

ClassLoader classpath of a TaskDef'd task

2014-04-15 Thread Edoardo Vacchi
... classpath.../classpath /taskdef 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 classpath/ information down to the task's

Re: ClassLoader classpath of a TaskDef'd task

2014-04-15 Thread Edoardo Vacchi
of classes *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 taskdef ... classpath.../classpath /taskdef where classpath points to the ./lib/* folder of the project

@classpath

2013-04-10 Thread Peter West
Where can I find documentation for usage like path path=@{classpath}/ ? 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

Re: @classpath

2013-04-10 Thread Vimil Saju
Those are macrodef attributes. Look for macrodefs in ant's manual From: Peter West li...@pbw.id.au To: user@ant.apache.org Sent: Wednesday, April 10, 2013 6:37 AM Subject: @classpath Where can I find documentation for usage like path path=@{classpath

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 li...@pbw.id.au wrote: Where can I find documentation for usage like path path=@{classpath}/ ? Likewise for the other uses of @? Thanks. Peter West Have you believed

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 path path=@{classpath}/ ? Likewise for the other uses of @? Thanks

Re: @classpath

2013-04-10 Thread Peter West
find documentation for usage like path path=@{classpath}/ ? 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

Re: @classpath

2013-04-10 Thread Peter West
for usage like path path=@{classpath}/ ? 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-mail

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 rai...@noacks.net 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

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

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

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. Thanks

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

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=/usr -Dant.library.dir=/usr/lib

Re: Changing my ant classpath

2013-02-25 Thread Peter West
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=/usr/lib org.apache.tools.ant.launch.Launcher -cp /home/katie

FW: Using jdk 1.6 wildcard in classpath using Ant 1.8.4

2013-01-10 Thread Prakash, Dharma
includeantruntime=false debug=on classpathref=project.class.path !--classpath location='C:\CCSTG\build\lib\commons-lang.jar'/classpath-- /javac /target target name=dist depends=compile description=generate the distribution !-- Create the distribution directory

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

2012-08-08 Thread Steve Amerige
=org.codehaus.groovy.ant.Groovy classpath=C:/groovy-2.0.1/embeddable/groovy-all-2.0.1.jar reverseloader=true/ target name=main echo message=ant: ${ant.version}/ groovy println GroovySystem.getVersion() /groovy /target /project *output with Ant 1.7.1:* *without reverseloader=true:* main

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

2012-08-07 Thread Steve Amerige
? 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? Many thanks! Steve Amerige SAS Institute, Deployment Developer *build.xml:* ?xml

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
. 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't think there a proper official way to do so. I have looked

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 below

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 (as it does), then even if I

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. On 06

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: IvyDE workspace resolver classpath container not playing well with AndroidDependencies classpath container...

2012-05-19 Thread Nicolas Lalevée
for the AndroidDependencies classpath container to pickup. What would be that artifact ? There is no way to be sure how to package an Eclipse project, some build is involved. IvyDE cannot do that either. The only thing I can think of is to somehow specify the artifact produced by the dependent workspace

IvyDE workspace resolver classpath container not playing well with AndroidDependencies classpath container...

2012-05-16 Thread Brian Anderson
in Eclipse versus when working with the command line build. I have setup IvyDE to retrieve dependencies into the libs/ directory. I have done this by editing the Ivy classpath container configuration as follows: - Build the classpath with: retrieved artifacts - Retrieve pattern: libs/[artifact

Re: How to avoid long classpath issue in windows

2012-04-02 Thread vijayaratha vijayasingam
Czekalski jarekc...@poczta.onet.pl 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. Jarek W dniu

Re: How to avoid long classpath issue in windows

2012-04-02 Thread Jarek Czekalski
with java command line. Jarek Thanks -Ratha On 2 April 2012 15:47, Jarek Czekalskijarekc...@poczta.onet.pl 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

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 problem: I

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... zipfileset id=my.zip src=/path/to/my.zip includes=*.jar/ junit ... classpath fileset refid=my.zip. /classpath /junit

Re: classpath reference from ivy

2011-04-25 Thread David Corbin
Thanks. I'd tried that but it failed (apparently because of an Eclipse mis-configuration). On Sun, Apr 24, 2011 at 6:28 PM, Tim Brown tpbr...@gmail.com wrote: Ivy:cachepath will give you a path which you can refid in any classpath. On Apr 24, 2011, at 1:15 PM, DAVID CORBIN dcorbi

classpath reference from ivy

2011-04-24 Thread DAVID CORBIN
Ive googled and googled and read, but I cannot find how I can turn the ivy dependency list into an ant classpath reference? My depndency list is in an ivy.xml file. Thanks David Corbin

Re: classpath reference from ivy

2011-04-24 Thread Tim Brown
Ivy:cachepath will give you a path which you can refid in any classpath. On Apr 24, 2011, at 1:15 PM, DAVID CORBIN dcorbi...@gmail.com wrote: Ive googled and googled and read, but I cannot find how I can turn the ivy dependency list into an ant classpath reference? My depndency list

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: target name=resolve depends=ivy.bootstrap description=-- resolve and retrieve dependencies

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 classpath url construct as described in 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

'classpath url' in settings

2011-04-19 Thread Felix Drueke
Can anyone confirm that the classpath url construct as described in 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 under Windows. I keep

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: taskdef classname=com.orbitz.insurance.engine.taskdefs.RebuildRulesTask name=rebuild-rulebase

Re: Ant + Spring = classpath purgatory

2011-01-29 Thread Mitch Gitman
be found on the classpath. The XML file, together with the application code, happen to be in the same JAR as the task itself. Now, I came across this very, very old post on the ant-dev list that gave me the makings of a solution: http://www.mail-archive.com/dev@ant.apache.org/msg07704.html So

Ant + Spring = classpath purgatory

2011-01-28 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 task itself. Now, I came across

Re: Execution classpath question for taskdef

2011-01-20 Thread Antoine Levy-Lambert
message=${selenium.jar.path} / taskdef name=SeleniumHTMLClient classname=com.criticalmass.util.ant.SeleniumRunner classpath=${selenium-lib}:${selenium.j ar.path}classpath refid=selenium-classpath-ref / /taskdef You should probably choose between the classpath

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 today where the same issue arose

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 element or attribute is used. I

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
: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 ant startup environment. See http://ant.apache.org

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-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 that specifies a list of jar

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 specifies a list of jar files

.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 wtpversion is set

Re: .project and .classpath

2010-10-13 Thread Brian Pontarelli
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 wtpversion is set to a valid version (WTP

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, prakash.sivaku...@wipro.com prakash.sivaku

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
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
echoxml file=.classpath classpath classpathentry path=src/java/main kind=src/ classpathentry path=src/conf/main kind=src/ classpathentry path=src/conf/test/integration output=target/classes/test/integration kind=src/ classpathentry path=src/conf/test/unit output=target/classes/test/unit kind

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

2010-10-13 Thread KARR, DAVID (ATTSI)
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: filelist id=cxfXjcPatch.jars.list files=${cxf-patches}/ Then: path id=build.classpath

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

Re: path and classpath - interchangeable?

2010-08-23 Thread Michael Ludwig
Stefan Bodewig schrieb am 23.08.2010 um 06:05 (+0200): On 2010-08-23, Michael Ludwig wrote: I'm wondering what's the difference between path and classpath. Why are there these two construct? Aren't they functionally identical? Ant contains a type - a thing you can define outside

path and classpath - interchangeable?

2010-08-22 Thread Michael Ludwig
I'm wondering what's the difference between path and classpath. Why are there these two construct? Aren't they functionally identical? This is not about the environment variables, but about the Ant constructs. The question has been asked here, but not really answered: difference between path

Re: path and classpath - interchangeable?

2010-08-22 Thread Stefan Bodewig
On 2010-08-23, Michael Ludwig wrote: I'm wondering what's the difference between path and classpath. Why are there these two construct? Aren't they functionally identical? Ant contains a type - a thing you can define outside of tasks - called path. This Ant type is backed by a Java class

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

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

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 maven ant

Re: Importing Ant build files on the classpath with Maven

2010-05-10 Thread Stefan Bodewig
On 2010-05-10, Frank Wilson fajwil...@gmail.com 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

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 targets from the classpath

2010-05-09 Thread Frank Wilson
Thanks for your help Martin and Jan! Sorry I missed that part of the manual Jan. :/ It was pretty much what I was looking for. Frank On 7 May 2010 09:24, jan.mate...@rzf.fin-nrw.de wrote: From the import manual:  import    javaresource name=common/targets.xml      classpath location

AW: importing ant targets from the classpath

2010-05-07 Thread Jan.Materne
From the import manual: import javaresource name=common/targets.xml classpath location=common.jar/ /javaresource /import Jan -Ursprüngliche Nachricht- Von: Frank Wilson [mailto:fajwil...@gmail.com] Gesendet: Donnerstag, 6. Mai 2010 17:59 An: user@ant.apache.org

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 import task. I

RE: importing ant targets from the classpath

2010-05-06 Thread Martin Gainty
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 the import task, which brings files not from the filesystem, but from the classpath (and hence possibly from

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(); System.out.println

Re: Custom task with classpath and exclusion

2010-04-22 Thread Stefan Bodewig
On 2010-04-22, Blaise Gervais gervai...@gmail.com 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(),

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 a...@schillbaer.de wrote: Original Message Subject: Proposal to have an Ant task to resolve ecllipse projects' classpath dependencies at runtime. From: Ravi Roy ravi.a...@gmail.com To: user@ant.apache.org Date

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 ravi.a...@gmail.com To: Ant Users List user@ant.apache.org Date: 07.04.2010 15:38 [...] Since people love Ant and also Eclipse being

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

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 ravi.a...@gmail.com To: user@ant.apache.org Date: 04.04.2010 11:05 Hi, [...] Since people love Ant and also Eclipse being an standard

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

[ivyde] Validation error for ivy classpath

2010-03-17 Thread Claudio Miranda
HI all, I have ivy and ivyde working very nice, thanks for the tools. however, eclipse outputs the following message at Problem window. Description ResourcePathLocationType Classpath entry org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xmlconfs

Re: Configuring repositories - trouble with CLASSPATH ?

2010-02-18 Thread Antoine Levy-Lambert
Hi, I did not read everything but it is bad practice to set the CLASSPATH env var before starting ant. Antoine Original-Nachricht Datum: Thu, 18 Feb 2010 13:40:27 + Von: Jimenez Coelho, Juan juan.jimenezcoe...@citi.com An: ivy-user@ant.apache.org ivy-user

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 worse. Or do

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 classpath element

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 !-- den Klassenpfad druckbar machen -- pathconvert pathsep=${line.separator}| |-- property

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: I use ant4eclipse to get the same

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

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

  1   2   3   4   5   6   7   8   >