This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i need to send some parameters through command line and i have to read the parameters.
What exactly do you mean by "I have to read the parameters" ? Are you developing a maven plug-in? If so, I don't think you can read parameters from the command line.
However, you can accept parameters defined in your pom.xml descriptor. That is relatively simple, you can refer to the Maven site. Basically you just need to create an attribute and annotate it following some conventions.
Hope it helps.
Joined: Aug 17, 2006
Hi Rodrigo Tomita Thanks a lot for your reply. but im not going to create or write a plug in. but im trying to read the command ine parameter and based on that parameter i have to compile specific folders only and rest of them shoud be discarded...
Originally posted by Peter Johnson: As far as using that information to determine which folders to compile, you are on your own.
I'm sorry but I agree with Peter... The best I can think of is organizing your code in a multi-module project (a parent pom and several modules, one for each portion of your code you want to compile separately).
That way you could control what will be built either with minimum parent pom.xml manipulation or by building the child modules in a shell script.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: passing the parameters and reading them in maven