Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <plugin>
- <groupId>org.codehaus.groovy.maven</groupId>
- <artifactId>gmaven-plugin</artifactId>
- <executions>
- <execution>
- <phase>validate</phase>
- <goals>
- <goal>execute</goal>
- </goals>
- <configuration>
- <source>
- import java.util.Date
- import java.text.SimpleDateFormat
- def format = new SimpleDateFormat("dd/MM/yyyy");
- def myothertimestamp = format.format(new Date());
- project.properties['othertimestamp'] = myothertimestamp
- </source>
- </configuration>
- </execution>
- </executions>
- </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement