RE: "dir attribute" for unit tests?
On Fri, 2004-02-06 at 13:59, Stephane Nicoll wrote: > maven.junit.fork=true in your proect.properties Thanks! I know if I go look for that property, NOW I'll find it. ;) Keith > Regards, > > Stephane > > > -Original Message- > From: Keith Irwin [mailto:[EMAIL PROTECTED] > Sent: Fri 2/6/2004 22:57 > To: Maven Users List > Cc: > Subject: "dir attribute" for unit tests? > Folks-- > > How come I get this message with ever test case: > > dir attribute ignored if running in the same VM > > How do I get rid of it? I really don't want my unit tests running in > the same VM, if that's what this is indicating. > > Thanks! > > Keith > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > __ > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
"dir attribute" for unit tests?
Folks-- How come I get this message with ever test case: dir attribute ignored if running in the same VM How do I get rid of it? I really don't want my unit tests running in the same VM, if that's what this is indicating. Thanks! Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Optional Ant Tasks in Maven?
Nevermind. Included the depenencies (forgot the tomcat/jars/jasper* stuff) and used maven.depenency.classpath (less the ${} stuff) and it all worked out. Keith On Tue, 2004-01-20 at 10:21, Keith Irwin wrote: > Folks-- > > How do I get the optional ant tasks to work for a maven.xml goal? I > need to run the JSP Compiler (jspc task) to verify that my JSP pages > will compile. > > I've tried creating a dependency, and indeed, the ant-optional jar is > downloaded, but I'm not sure that maven itself sees it when it evokes > ant on my tag. > > Scanning various plugins to see if I can find anything . . . > > Keith > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Optional Ant Tasks in Maven?
Folks-- How do I get the optional ant tasks to work for a maven.xml goal? I need to run the JSP Compiler (jspc task) to verify that my JSP pages will compile. I've tried creating a dependency, and indeed, the ant-optional jar is downloaded, but I'm not sure that maven itself sees it when it evokes ant on my tag. Scanning various plugins to see if I can find anything . . . Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
That License Page
Folks-- I (now) explicitly set the reports I want to produce (mainly to include cactus testing), but now find that the license page doesn't show up. Obviously not a show stopper. Which plugin can I add (or research) to my reports list to get that thing to show up? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Constructing Dates on the Fly?
On Thu, 2004-01-15 at 15:35, Brett Porter wrote: > You might like to try war:install/deploy-snapshot which does this > automatically with a UTC timestamp on the end as the version. > > To get a date yourself, are you sure there isn't a jelly taglib for that? I > thought there was a or something, after all it is mimicing a lot of > JSTL. Yeah, I was looking at that. It would be great, but you know, they never have any examples in their docs, so I have to go scraping through plugins hoping to find something, which is how I found: > You could also use an appropriate ant tag (although its been so long I've > forgotten what its called - I think). Exactly. Worked like a dream. ;) See my reply to my reply. The production guys want three builds for three environments so I now have a goal that does them all at once. Keith > Cheers, > Brett > > > -Original Message- > > From: Keith Irwin [mailto:[EMAIL PROTECTED] > > Sent: Friday, 16 January 2004 10:21 AM > > To: Maven Users List > > Subject: Constructing Dates on the Fly? > > > > > > Folks-- > > > > I need to rename my war file to meet some hosting / > > production /process requirement. > > > > Changing the name is no problem. > > > > However, I'd like to be able to insert a date in the middle > > of it so I can do something like: > > > > project-date-lifecycle.war > > > > Is there an obvious way to get a date (and format it) using > > jelly or some other thing in maven.xml? > > > > Perusing the jelly core tags, I suppose I could instantiate a > > jave.util.Date object, then a simple date formatter object, > > but that seems like a lot of work. > > > > Alternately, I could manually change the > > element in project.xml, or use some other property I manually > > set (using -D for instance), but, well, it would be ever so > > much nicer if there was something like: > > > > > > > > Do I dare hope? > > > > Keith > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Constructing Dates on the Fly?
Ah hah! I knew if I wrote to the list it would speed my discovery. This seems to work: Easy! :) Keith On Thu, 2004-01-15 at 15:21, Keith Irwin wrote: > Folks-- > > I need to rename my war file to meet some hosting / production /process > requirement. > > Changing the name is no problem. > > However, I'd like to be able to insert a date in the middle of it so I > can do something like: > > project-date-lifecycle.war > > Is there an obvious way to get a date (and format it) using jelly or > some other thing in maven.xml? > > Perusing the jelly core tags, I suppose I could instantiate a > jave.util.Date object, then a simple date formatter object, but that > seems like a lot of work. > > Alternately, I could manually change the element in > project.xml, or use some other property I manually set (using -D for > instance), but, well, it would be ever so much nicer if there was > something like: > > > > Do I dare hope? > > Keith > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Constructing Dates on the Fly?
Folks-- I need to rename my war file to meet some hosting / production /process requirement. Changing the name is no problem. However, I'd like to be able to insert a date in the middle of it so I can do something like: project-date-lifecycle.war Is there an obvious way to get a date (and format it) using jelly or some other thing in maven.xml? Perusing the jelly core tags, I suppose I could instantiate a jave.util.Date object, then a simple date formatter object, but that seems like a lot of work. Alternately, I could manually change the element in project.xml, or use some other property I manually set (using -D for instance), but, well, it would be ever so much nicer if there was something like: Do I dare hope? Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mutliple source directories in project.xml
On Thu, 2004-01-08 at 18:17, Keith Irwin wrote: > On Thu, 2004-01-08 at 00:43, [EMAIL PROTECTED] wrote: > > > I gather one can circumvent this by modifying the appropriate > > property/variable in a preGoal > > (like maven.compile.src.set), but that would add to the maintenance > > workload and really > > it'd just be a hack. > > For those of us who haven't been on the list long, where is this hack? > I just grabbed some WSDL to generate classes and am in the same boat. > Nevermind: seems to work. > Changing maven.compile.src.set didn't seem to do anything. > > For those interested, a repeat? > > Keith > > > So my question is; will support for multiple source directories in the POM > > ever be incuded, or > > is it absolutely out of the question? > > > > Regard, Jan-Helge > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mutliple source directories in project.xml
On Thu, 2004-01-08 at 00:43, [EMAIL PROTECTED] wrote: > I gather one can circumvent this by modifying the appropriate > property/variable in a preGoal > (like maven.compile.src.set), but that would add to the maintenance > workload and really > it'd just be a hack. For those of us who haven't been on the list long, where is this hack? I just grabbed some WSDL to generate classes and am in the same boat. Changing maven.compile.src.set didn't seem to do anything. For those interested, a repeat? Keith > So my question is; will support for multiple source directories in the POM > ever be incuded, or > is it absolutely out of the question? > > Regard, Jan-Helge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven changelog plugin time zone?
Folks-- Generating a changelog report is fun! But, alas, all my changes seem to be GMT, which, for me, means about 8 hours ahead of time. I looked through the changelog plugin pages but can't find anything about the time zone. Likewise the maven properties themselves and the xdoc properties. maven.xdoc.date.format looks promising, but suggests that the format is for the date of the site itself. Any pointers? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the proper way to handle resource bundles when unit testing?
On Thu, 2004-01-01 at 20:47, Chad Woolley wrote: > Hi, > > I use a resource bundle in my app. In my ResourceManager class, I load it like > this: > > ClassLoader classLoader = this.getClass().getClassLoader(); > resourceBundle = ResourceBundle.getBundle(resourceFileName, locale, > classLoader); Hm. I used cactus tests to run unit tests in a container to get this working. I'm guessing that it won't work unless your resource bundles are on the classpath. How you add *.properties files to a classpath in Maven -- well, I don't know. ;) I'm curious, but does the tag take care of this? Or do you have to do something interesting in maven.xml? Keith > However, when I run my ResourceManagerTest unit test via the default "test" > goal, my class always fails because it cannot find the resource bundle. > > I tried specifying the bundle in the section of project.xml, but > this doesn't seem to work. > > Is there a standard way to handle this, or any other maven projects that I can > look at for an example? > > FYI - if I make custom goals to manually copy the bundle to basedir, and > manually invoke JUnit, then it works. This method doesn't work when using the > standard maven "test" goal, though. > > Thanks, > Chad > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help please.
On Wed, 2003-12-31 at 08:34, Mostashfi, Ali wrote: > Hello, Hi! > Anyone know how one can control the left-hand-side navigation bar's width of > the site generated files? I'm not sure. There's a way to work with stylesheets. You might check the site plugin documentation page. I haven't gotten to this type of thing myself yet. Also: http://maven.apache.org/reference/user-guide.html#Stylesheets > Also, anyone have any problems with the checkstyle-report.html file? It > doesn't get generated for my setup, and I have not been able to find out > where anything gets set for that portion. I've got the same problem. I just removed it from my list of reports because I don't really need it. > Lastly, does anyone know how I can configure maven with following > source-code's directory structure? Okay, this I might be able to answer, though it's a guess: > The source directory is: > . > |-- project.properties > |-- project.xml > |-- project > |`-- src > ||`-- com > | |`-- sra > | |`-- app > | |`-- App.java > | > |`-- unit_test > |`-- src > |`-- com > |`-- sra >|`-- app > |-- AppTest.java In your project.xml file, you'll need something like: project/src project/unit_test/src The problem is that the unit test directory falls under the src directory, so I think you'll have to set some "includes" and "excludes" in the element of the project.xml. I'm not sure how to fix the sourceDirectory as I don't see any properties for dealing with that. Is it impossible to re-arrange your source code? There's also the "resources" element, but I've not seen any explanation anywhere about what that does or what that means. Finally, if all else fails, maybe including something in maven.xml will work, though I have to admit, if you have to do a lot in there, you might as well use ant, eh? :) Your best bet is to re-arrange the source code and be done with it. ;) Good luck! Keith > I apologize if my questions are too basic, but I have been having a lot of > difficulty with this. > > Best wishes, > -AM > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple Cactus Question (I Hope)
Folks-- After running cactus:test, and assuming I get some failures, I can run cactus:report to produce the cactus-report.xml. So far so good. How do I then turn that report into html so I can view the results in a browser rather than, say, scrolling back through my console past lots of ugly stack traces? I know I can run site:generate, but that's an awful lot of processing just to get at that one report. I can't find anything about the site or cactus plugin pages. Might there be a plugin somewhere I can invoke to do the job? Or should I write a goal in maven.xml and use the ant stuff to do this? Thanks! Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build finesse documentation?
Okay, I'm getting it. You can use jelly inside the goals to take care of some of the things that ant did with its target directive. I can't wait for the book on this subject. ;) Keith On Tue, 2003-12-30 at 13:48, Keith Irwin wrote: > On Tue, 2003-12-30 at 13:36, __matthewHawthorne wrote: > > You should check out the goals and properties for the war plugin. > > > > http://maven.apache.org/reference/plugins/war/ > > > > There are some include/exclude properties that should help. You can > > also see which goals to create pre and post goals for. > > Hm. Thanks. I think this is a good place to start. The problem I'm > having, though, is understanding what goes in the > sections. > > For instance, when it says something like "create a postGoal then set a > property," I'm not sure if it's possible to set that property > dynamically. In ant, you can't do that, for instance. > > Well, I'll play around. > > Keith > > > > > > Keith Irwin wrote: > > > Folks-- > > > > > > I'm trying to convert from ant to maven, but can't find anything about > > > how to use maven.xml to do some fancy stuff. > > > > > > For instance, what I want to do is be able to filter out certain > > > classes, and use a different web.xml depending on the lifecycle of the > > > app. > > > > > > Using the ant war task, I can do things like: > > > > > > > > > > > > > > > > > > which removes all classes in "**/devel/** if devel.tweak is set. > > > > > > I'm guessing that this kind of thing might be solved either by > > > > > > 1. creating a new goal to generate the war file rather than > > > using the default > > > > > > or > > > > > > 2. using the resources stuff in project.xml. > > > > > > My main question, though, is if anyone knows of any documentation about > > > this sort of thing somewhere on the maven site? > > > > > > Thanks, > > > > > > Keith > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build finesse documentation?
On Tue, 2003-12-30 at 13:36, __matthewHawthorne wrote: > You should check out the goals and properties for the war plugin. > > http://maven.apache.org/reference/plugins/war/ > > There are some include/exclude properties that should help. You can > also see which goals to create pre and post goals for. Hm. Thanks. I think this is a good place to start. The problem I'm having, though, is understanding what goes in the sections. For instance, when it says something like "create a postGoal then set a property," I'm not sure if it's possible to set that property dynamically. In ant, you can't do that, for instance. Well, I'll play around. Keith > > Keith Irwin wrote: > > Folks-- > > > > I'm trying to convert from ant to maven, but can't find anything about > > how to use maven.xml to do some fancy stuff. > > > > For instance, what I want to do is be able to filter out certain > > classes, and use a different web.xml depending on the lifecycle of the > > app. > > > > Using the ant war task, I can do things like: > > > > > > > > > > > > which removes all classes in "**/devel/** if devel.tweak is set. > > > > I'm guessing that this kind of thing might be solved either by > > > > 1. creating a new goal to generate the war file rather than > > using the default > > > > or > > > > 2. using the resources stuff in project.xml. > > > > My main question, though, is if anyone knows of any documentation about > > this sort of thing somewhere on the maven site? > > > > Thanks, > > > > Keith > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
build finesse documentation?
Folks-- I'm trying to convert from ant to maven, but can't find anything about how to use maven.xml to do some fancy stuff. For instance, what I want to do is be able to filter out certain classes, and use a different web.xml depending on the lifecycle of the app. Using the ant war task, I can do things like: which removes all classes in "**/devel/** if devel.tweak is set. I'm guessing that this kind of thing might be solved either by 1. creating a new goal to generate the war file rather than using the default or 2. using the resources stuff in project.xml. My main question, though, is if anyone knows of any documentation about this sort of thing somewhere on the maven site? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]