I could write a launcher app but then we will have a launcher app for an already existing launcher app (the 3rd party one). I prefer to make this system simpler not more complex, so I would rather not. As to using ant we are actually trying to remove ant from our builds that is why we opted to use maven, so bringing ant back into the picture is a nonstarter. It looks like I might have to extend the exec plugin myself to do what I need it to do. No problem I wanted to exhaust all other possibilities first before going down that path.
Thanks, Blair From: Russell Gold [mailto:[email protected]] Sent: Tuesday, October 15, 2013 9:56 AM To: [email protected] Subject: Re: [mojo-user] Is there a way to grab the classpath HI Blair, Can you write a launcher app? That is, one that you can launch via the exec plugin, and which can do the translation and launch the other app? Alternately, I think you could use the ant run plugin - that should have properties which provide the actual class path - and then you would use ant to do the launching. - Russ On Oct 15, 2013, at 12:04 PM, "Jennings, Blair" <[email protected]<mailto:[email protected]>> wrote: Hi Russell, Unfortunately, the app in question is not mine to change. It is a third party one that we write components for, so I need to feed it what is needed from maven. Blair From: Russell Gold [mailto:[email protected]<http://gold-family.us>] Sent: Tuesday, October 15, 2013 9:00 AM To: [email protected]<mailto:[email protected]> Subject: Re: [mojo-user] Is there a way to grab the classpath Hi Blair, The underlying property is a list of strings. What you get when you use it in a POM is the string representation. You would have to get your program to translate it into a class path. Since your app is taking it as a parameter, it should be able to do that. Just strip off the beginning and ending brackets and split the string at the commas. Regards, Russ On Oct 15, 2013, at 11:04 AM, "Jennings, Blair" <[email protected]<mailto:[email protected]>> wrote: Thanks Russell, That has the right data just not in the right format. I need it to look just like a normal classpath with the platform appropriate separators. In my case that would be a : for I am on a linux box. Instead that property gives me a comma delimited list that seems to also start with a [. Is there some way to transform that property into what I need or is there another property out there that will give me what I want? Thanks, Blair From: Russell Gold [mailto:[email protected]<http://gold-family.us>] Sent: Monday, October 14, 2013 5:06 PM To: [email protected]<mailto:[email protected]> Subject: Re: [mojo-user] Is there a way to grab the classpath Try the property, "project.compileClasspathElements" On Oct 14, 2013, at 7:34 PM, "Jennings, Blair" <[email protected]<mailto:[email protected]>> wrote: Hello, I am trying to use the exec plugin to run a vry large distributed application, but in order to start the system I need to be able to read the maven built classpath and pass that into my app as a parameter. Is there a way to read the current classpath into a variable or reference it in any way? I have tried multiple different properties found via Google, but none of them have the data I need. Thanks, Blair ----------------- Author, Getting Started with Apache Maven <http://www.packtpub.com/getting-started-with-apache-maven/video> Come read my webnovel, Take a Lemon <http://www.takealemon.com>, and listen to the Misfile radio play <http://www.fuzzyfacetheater.com/misfile/>! ----------------- Author, Getting Started with Apache Maven <http://www.packtpub.com/getting-started-with-apache-maven/video> Come read my webnovel, Take a Lemon <http://www.takealemon.com>, and listen to the Misfile radio play <http://www.fuzzyfacetheater.com/misfile/>! ----------------- Author, Getting Started with Apache Maven <http://www.packtpub.com/getting-started-with-apache-maven/video> Come read my webnovel, Take a Lemon <http://www.takealemon.com>, and listen to the Misfile radio play <http://www.fuzzyfacetheater.com/misfile/>!
