maven ant task
来源:互联网 发布:mac照片幻灯片主题 编辑:程序博客网 时间:2024/06/10 07:29
<ant-contrib.version>1.0b3</ant-contrib.version><ant-nodeps.version>1.8.1</ant-nodeps.version> <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId> <version>${ant-contrib.version}</version> <exclusions> <exclusion> <groupId>ant</groupId> <artifactId>ant</artifactId> </exclusion> </exclusions> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-nodeps</artifactId> <version>${ant-nodeps.version}</version> <scope>test</scope> </dependency> <profiles> <profile> <id>production</id> <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>compile</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <echo>settings.localRepository : ${settings.localRepository}</echo> <echo>project.build.outputDirectory : ${project.build.outputDirectory}</echo> <taskdef resource="net/sf/antcontrib/antlib.xml"> <classpath> <pathelement location="${settings.localRepository}/ant-contrib/ant-contrib/${ant-contrib.version}/ant-contrib-${ant-contrib.version}.jar" /> </classpath> </taskdef> <if> <available file="${project.build.outputDirectory}/log4j.production.properties" /> <then> <echo>Before log4j.properties move</echo> <move file="${project.build.outputDirectory}/log4j.production.properties" tofile="${project.build.outputDirectory}/log4j.properties" /> <echo>After log4j.properties move</echo> </then> <else> <echo>The log4j.properties does not exist</echo> </else> </if> </tasks> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles>
0 0
- Maven-Ant-Task 使用手记
- maven ant task
- Maven antrun plugin调用Ant Optional Task
- 初学maven(4)-使用maven ant task实现非标准打包
- 初学maven(4)-使用maven ant task实现非标准打包
- 使用maven ant task实现非标准打包[转]
- Ant 常用Task
- ANT SVN TASK
- ant war task 例子
- ant常用task
- 自定义Ant Task
- Ant高级-task
- Ant Task Note
- [Ant] Echo task
- TestNG 与 Ant Task
- Ant高级-task
- ant学习笔记-task
- Ant之Task
- 第四周 用星号输出姓名读音首字母
- 开发课程学习资料
- struts.xml的result类型
- ArrayList和LinkedList的区别
- LeetCode 3:Longest Substring Without Repeating Characters
- maven ant task
- URL简介
- Swift - QQ分享完毕后的回调响应(判断是否分享成功)
- 第4周项目1 星号拼字母
- SQL实例整理
- Ubuntu使用debootstrap制作Docker镜像
- 如何阻止冒泡事件和默认事件
- Hive分区表中 添加新字段,值为NULL 问题解决
- mysql 时间函数