Hi, First question: why do you need to do this?
Maven defines strong conventions principles over config. So doing what you say seems quite uncommon. So you've got three solutions: * if the project can be cleanly refactored to be built, with clear deps and so on => the way to go * if those source directories comes from a special process (say generation), then maybe the way to go is more writing a maven plugin that will do what you need cleanly (writing a maven plugin is very simple). To help answer this question, I guess you'll have to explain your need a bit more. * combine ant-run plugin/buildhelper should help do the trick, but this would be like using ant to compile when developing under eclipse Cheers 2010/3/12 swaroopgr <[email protected]> > > I'm need to use custom variables in maven. Here's what I do: > > Run the "ls" command in the current directory. For each directory listed, I > want to add the name in pom.xml's <sourceDirectory> $DirectoryName > </sourceDirectory>property and run mvn. If there's a way to set name / > value > pairs during mvn invocation, that would be best. If not, what's the best > way > to do this? > -- > View this message in context: > http://old.nabble.com/Setting-custom-varaibles-tp27881131p27881131.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
