maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Sutic <leosu...@apache.org>
Subject maven.final.name
Date Mon, 25 Aug 2003 16:07:20 GMT
When defining a postGoal to jar:jar, I expect the maven.final.name
variable to point to the recently-created jar file. This is correct when
jar:jar is invoked directly, but not when it is invoked via jar:snapshot.
jar:snapshot does a <j:set/> of maven.final.name to snapshotSignature.
However, that j:set is lost to the postGoal.

  <postGoal name="jar:jar">
        <ant:echo message="Jar just created: ${maven.final.name}.jar"/>
    </postGoal>

log output:

    jar:snapshot:
        [echo] Building snapshot JAR:
commons-attributes-unittest-20030823.185627
    java:prepare-filesystem:

    java:compile:

        .
        .
        .
    jar:jar:
        [jar] Building jar:
C:\Home\leo\Private\Apache\jakarta-commons-sandbox\attri
    butes\unittest\target\commons-attributes-unittest-20030823.185627.jar
        [echo] Jar just created: commons-attributes-unittest-2.0alpha.jar

Question:

 1. Is this on purpose or is it a bug?

 2. Is there any other way to get athe name of the jar just created from a
postGoal to jar:jar?

/LS

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message