Brett Porter wrote:
yep thanks! just to avoid confusion - I was wrong about #3. It doesn't include ALL dependencies. It's just because I tried this:1 & 2 - no. werkz doesn't expose any of its information to jelly.
3 - ${pom.artifacts}. The war plugin does exactly what you want, so
its worth looking in its source.
<copy todir="${user.jars.dir}" flatten="true"> <fileset dir="${maven.repo.local}"> <path refid="maven.dependency.classpath" /> </fileset> </copy>
I wanted to copy all the dependencies to a single directory. we think alike - as soon as I realized how silly I was I looked up the war plugin and did:
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}"/>
<j:if test="${dep.type =='jar'}">
<ant:copy todir="${user.jars.dir}" file="${lib.path}"/> </j:if>
</j:forEach>
-Randy
- Brett
On Wed, 05 Jan 2005 18:59:50 -0500, Randy Xu <[EMAIL PROTECTED]> wrote:
Three questions.
1) Anyone know how to reference the goal's name within a goal? I'm creating error messages now and it'd be a lot cleaner if I can just output:
<fail message="[${goal.name}] crap crap crap" />
2) If 1 is answerable, is this generalizable to other goal/project variables too?
3) maven.dependency.classpath - I see that this includes ALL dependencies, including maven plugins. Is there a way to distinguish from the ones that _I_ specify? I'm thinking of adding a property in each dependency and then checking for this property. Is there an easier way?
-Randy
--------------------------------------------------------------------- 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]