Hi,All
   Use maven-antrun-plugin,But -${timestamp}  display:

   * [echo] signon-1.0-1282184699068 source code:.*
*Everybody,Help me?*
code:
     <profile>
<id>build_server</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>compile</id>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<tasks>
<property name="sourceDir" value="."/>
<property name="outputDir" value="."/>
<tstamp>
<format property="timestamp" pattern="yyMMdd-HHmm"/>
<format property="today" pattern="yyMMdd"/>
</tstamp>

<echo>${artifactId}-${version}-${timestamp} source code:${sourceDir}</echo>


<!--delete dir="${basedir}/tmp"/-->
</tasks>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profile>

    Best Regards,
        --Cody.Zhang

Reply via email to