Re: do something before *.properties files load

2004-11-19 Thread Ben Anderson
CVS checkout and an in progress checkout. - Brett On Fri, 19 Nov 2004 08:37:55 -0500, Ben Anderson [EMAIL PROTECTED] wrote: I want to be able to build the source using either my local working directory which I have modified, or vss's shadow directory which contains only

Re: do something before *.properties files load

2004-11-19 Thread Ben Anderson
, right? ;) Hope that helps. Troy -Original Message- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 10:44 AM To: Maven Users List Subject: Re: do something before *.properties files load yes, I understand that. But what if I don't want to swap

Re: do something before *.properties files load

2004-11-19 Thread Ben Anderson
. -Original Message- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 11:44 AM To: Maven Users List Subject: Fwd: do something before *.properties files load -- Forwarded message -- From: Ben Anderson [EMAIL PROTECTED] Date: Fri

do something before *.properties files load

2004-11-18 Thread Ben Anderson
Hi, I'd like to set a property based on some other command line property. For instance if: maven -Denv=qa java:compile I'd like this: build.properties --- some.arbitrary.property=qaValue but if maven -Denv=prod java:compile I'd like this: build.properties

Re: javac ... -source 1.3

2004-11-15 Thread Ben Anderson
whoops, sent that to brett instead of the list... sorry. I also forgot to mention, that before I did the plugin:install under maven-plugins/java, I had to add jaxen and dom4j as dependencies. On Mon, 15 Nov 2004 10:01:00 -0500, Ben Anderson [EMAIL PROTECTED] wrote: ah - plugin.properties

Re: javac ... -source 1.3

2004-11-15 Thread Ben Anderson
SUCCESSFUL Total time: 5 seconds Finished at: Mon Nov 15 14:25:12 EST 2004 On Tue, 16 Nov 2004 06:18:16 +1100, Brett Porter [EMAIL PROTECTED] wrote: Ben, These dependencies don't sound right, what error were you getting beforehand? - Brett On Mon, 15 Nov 2004 10:08:28 -0500, Ben Anderson

Re: javac ... -source 1.3

2004-11-15 Thread Ben Anderson
2004 14:37:43 -0500, Ben Anderson [EMAIL PROTECTED] wrote: There could be something screwy w/ my installation, b/c I installed 1.0.1, then uninstalled it, then re-installed 1.0. But anyways, heres what happened. w/ no dependencies specified. $ maven plugin:install

Re: escapeText

2004-11-12 Thread Ben Anderson
have upgraded Jelly on CVS HEAD and it seems to be working, so you should be able to drop this all into Maven's lib directly. - Brett On Thu, 11 Nov 2004 09:26:03 -0500, Ben Anderson [EMAIL PROTECTED] wrote: Is there anyway I can insert the latest version of jelly into maven

Re: javac ... -source 1.3

2004-11-12 Thread Ben Anderson
worked was when I edited the plugin.jelly in $MAVEN_HOME/plugins/maven-javajar What's the necessity for these various version? Bottom line - I got my problem fixed and I'm happy. Thanks, Ben On Fri, 12 Nov 2004 07:40:39 -0500, Ben Anderson [EMAIL PROTECTED] wrote: Thanks for the tip Brett

Re: escapeText

2004-11-11 Thread Ben Anderson
-0500, Ben Anderson [EMAIL PROTECTED] wrote: Hi, How do I set a variable with xml in it and then spit it back out? j:set var=cats1 ![CDATA[ category name= ]] /j:set This escapes the xml, which I dont' want: amp;ltcategory name... Looking at jelly's

javac ... -source 1.3

2004-11-11 Thread Ben Anderson
Hi, I upgraded to maven1.0.1, but now my build is broken. The problem is we're using the javac bundled with websphere3.5.7. This javac does not have a -source option which maven is adding. I tried uninstalling 1.0.1 and reinstalling 1.0, but this didn't help. I also grepped through the plugins

escapeText

2004-11-10 Thread Ben Anderson
Hi, How do I set a variable with xml in it and then spit it back out? j:set var=cats1 ![CDATA[ category name= ]] /j:set This escapes the xml, which I dont' want: amp;ltcategory name... Looking at jelly's documentation, I should be able to do this: j:set

root ${basedir}

2004-11-04 Thread Ben Anderson
Is there a property for specifying the ${basedir} of the highest level of my pom inheritnace tree? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

maven test:test

2004-11-03 Thread Ben Anderson
Hi, I have this in my project.xml build sourceDirectory${maven.src.dir}/com/sourceDirectory resources resource directory${maven.src.dir}/directory includes include*.xml/include include*.dtd/include /includes /resource /resources

Re: maven test:test

2004-11-03 Thread Ben Anderson
unitTestSourceDirectory${maven.src.dir}/unitTestSourceDirectory Notice that /com is not specified. -Original Message- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 5:24 AM To: [EMAIL PROTECTED] Subject: maven test:test Hi, I have this in my

Re: dynamic property access

2004-11-01 Thread Ben Anderson
Thanks Alex - that works! However, I've realized I don't really need to do this. If anyone cares, here's my resolution that lets me add tokens to property files dynamically w/out requiring a change in my maven.xml. Nothing special here - I just think it's pretty neat. goal name=prop

j:mute

2004-11-01 Thread Ben Anderson
Anyone know what I'm doing wrong here: goal name=prop j:new var=envs className=java.util.ArrayList/ j:mute ${envs.add('.qa')} ${envs.add('.Nqa')} ${envs.add('.prod')} /j:mute ... I assumed running this would output nothing, but on the contrary, it does: $

${maven.goal} ??

2004-11-01 Thread Ben Anderson
Is there a property for the goal the user entered? I want to make a pregoal on, say, java:compile that echos what the user entered as their goal. This would produce: $maven jar:jar ... your desired goal: jar:jar $maven java:compile ... your desired goal: java:compile Thanks, Ben

dynamic property access

2004-10-29 Thread Ben Anderson
Hi, I want to dynamically set which property I access. Is this possible? Obviously the below code won't work, but you get the idea. I thought maybe that the j:expr tag might help, but it doesn't seem to do anything. j:set var=color value=red/ j:set var=colorKey value=color/

Re: dynamic property access

2004-10-29 Thread Ben Anderson
the j:set tags? Thanks, Ben Quoting Eric Giguere [EMAIL PROTECTED]: Hello Ben Yep, try this: j:set var=color value=red/ j:set var=colorKey value=${color}/ ant:echo ${colorKey} /ant:echo Hope it helps Eric. Ben Anderson wrote: Hi, I want to dynamically set

Re: Build setup for multiple small projects that are related

2004-10-21 Thread Ben Anderson
Irv, It doesn't sound like your directory structures need to change. I would suggest keeping the same one you have, then you can use maven's inheritance: src project.xml common project.xml java xml conf web-services project.xml java xml conf xml-util

Re: Build setup for multiple small projects that are related

2004-10-21 Thread Ben Anderson
Thanks for the quick reply. To jog your memory - I was in one of your D.O. Tech classes a couple years back when I was with Paychex. Just paying my respects to the teacher ;-) You also introduced me to gvim, for which I am ever grateful. 1. Each sub project has its own artifacts (jar files).

running the project out of maven.xml

2004-10-20 Thread Ben Anderson
Hi, I'd like to take advantage of the classpath which maven uses to run my project. I've tried to solutions: 1.ant:echo ${us.benanderson.rpc.Assignment3.main(null)} /ant:echo This gives no output (good or bad) 2. ant:java classname=us.benanderson.rpc.Assignment3

[RES} Re: running the project out of maven.xml

2004-10-20 Thread Ben Anderson
what do you know - that worked! Thanks Craig! Craig S. Cottingham wrote: On Oct 20, 2004, at 13:24, Ben Anderson wrote: I'd like to take advantage of the classpath which maven uses to run my project. I've tried to solutions: [ ... ] 2. ant:java classname=us.benanderson.rpc.Assignment3

maven.xml inheritance

2004-10-14 Thread Ben Anderson
Hi, I'm trying to use inheritance with my project. The problem is that I only want the project.xml to be inherited, but the behaviors in maven.xml are also being inherited. Is there a way to turn this off? I'm honestly not seeing all the benefits of using inheritance. Is it all that it's

maven -u [undocumented goals]

2004-10-12 Thread Ben Anderson
Hi all, Hopefully this is an easy question - I just can't find the answer anywhere. When I do: maven -u I get: Undocumented goals : [list of all my goals] This leads me to believe that there's a way to document my custom goals. Is this true? I need other developers to be able to understand

maven -u [undocumented goals]

2004-10-12 Thread Ben Anderson
Hi all, Hopefully this is an easy question - I just can't find the answer anywhere. When I do: maven -u I get: Undocumented goals : [list of all my goals] This leads me to believe that there's a way to document my custom goals. Is this true? I need other developers to be able to understand

Re: Maven and FTP Ant task: what's up??

2004-10-05 Thread Ben Anderson
see this thread: http://marc.theaimsgroup.com/?l=turbine-maven-userm=109570387625634w=2 Note: you will have to manually download NetComponents.jar - which is hard to find. I can't remember where I got it from. Don't ask me why you need this jar as opposed to the current version of that project

ant:xmlvalidate

2004-10-05 Thread Ben Anderson
anyone know how to use this optional ant task in maven? Is there some standard way to enable ant optionals? From what I've seen, you just need to add the optional jar, but I don't think this tag needs any additional jars. Thanks, Ben

RE: How do I test a schema

2004-09-24 Thread Ben Anderson
); } public static Test suite() { return new TestSuite(SchemaTest.class); } } %- Regards, C. Helck -Original Message- From: Ben Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 7:29 AM To: Maven

property from .properties vs j:set

2004-09-24 Thread Ben Anderson
Hi, I've noticed that there is a distinct difference with properties declared in a .properties file vs. properties set using j:set. I'm wondering if this is the desired behavior or a bug. For instance: build.properties my.property=myValue maven.xml -

Re: property from .properties vs j:set

2004-09-24 Thread Ben Anderson
== 'someValue'} you must first create a variable of type String: j:set var=myProperty${my.property}/j:set -Ben Quoting Ben Anderson [EMAIL PROTECTED]: Hi, I've noticed that there is a distinct difference with properties declared in a .properties file vs. properties set using j:set. I'm wondering

Re: How do I test a schema

2004-09-23 Thread Ben Anderson
That's funny - I was trying to do this yesterday, but gave up. You'll need the validate plugin jar here: http://jakarta.apache.org/commons/jelly/libs/validate/index.html I'm not sure where you're supposed to stick these jars. I put it in $MAVEN_HOME/lib and that worked, but it's probably supposed

custom goal (ant)

2004-09-20 Thread Ben Anderson
Hi, I want to create a goal which deploys to our qa box. I figured I'd use custom goals with ant's ftp option. However, it doesn't seem to do anything. I've tried the exact same thing in ant and it works fine. Here's my maven.xml: ?xml version=1.0? project default=jar:jar

Re: custom goal (ant)

2004-09-20 Thread Ben Anderson
the solution. -D On Mon, 20 Sep 2004 08:24:46 -0700, Ben Anderson [EMAIL PROTECTED] wrote: Hi, I want to create a goal which deploys to our qa box. I figured I'd use custom goals with ant's ftp option. However, it doesn't seem to do anything. I've tried the exact same thing in ant

stupid newbie

2004-09-17 Thread Ben Anderson
the same output from regular DOS prompt. Sorry, for the simplicity of this question. If you can at least point me in the right direction to learning... TIA, Ben Anderson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: stupid newbie

2004-09-17 Thread Ben Anderson
? You know that you can upgrade your Maven to 1.0. 1.0RC3 is an very old version. Emmanuel - Original Message - From: Ben Anderson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 17, 2004 2:24 PM Subject: stupid newbie After perusing through maven's website

Re: stupid newbie

2004-09-17 Thread Ben Anderson
for you, http://maven.apache.org/reference/plugins/genapp/templates.html). Don't give up on maven too soon. It isn't that hard. Have you read the excellent article: http://www.theserverside.com/articles/article.tss?l=MavenMagic ? Martijn Ben Anderson wrote: Thanks for the responses. ok, I

suppress warning output

2004-09-17 Thread Ben Anderson
Hi, Is there a way to suppress warning messages when compiling? I don't see any options listed in the properties. While I'm asking questions again - does maven use the javac that my $PATH is pointing to, or some other one? Thanks, Ben

Re: suppress warning output

2004-09-17 Thread Ben Anderson
if this actually does anything): maven.compile.source=1.2 maven.compile.target=1.2 Thanks, Ben Quoting Ben Anderson [EMAIL PROTECTED]: Hi, Is there a way to suppress warning messages when compiling? I don't see any options listed in the properties. While I'm asking questions again - does maven use