用ant编译Web项目..
在Web的一切东西都没问题..在src包里有java类编译也没问题.但是src包含的配置.比如说:xx.properties或者xx.xml文件啥的.这样的东西被过滤掉了.用copy可以实现..不过这些个东西很乱.很多..有没有方法使copy过滤java文件.其他的都copy进去..因为javac只编译java文件..谢了!
在Web的一切东西都没问题..在src包里有java类编译也没问题.但是src包含的配置.比如说:xx.properties或者xx.xml文件啥的.这样的东西被过滤掉了.用copy可以实现..不过这些个东西很乱.很多..有没有方法使copy过滤java文件.其他的都copy进去..因为javac只编译java文件..谢了!
解决方案 »
- 求助错误解决 java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
- 这个action怎么不能访问
- B/S模式下,类似股票那种实时刷新的曲线图该怎样实现?
- 分布式系统的数据同步传输问题大家是怎么解决
- 一个关于hashtable的问题
- 最近运气很霉,求各位兄弟的祝福!谢谢了!
- struts问题,看过卫琴mm的书的近来看看!^(oo)^
- 两次实例化的结果
- Exception in thread "main" java.lang.NoClassDefFoundError:test 是怎么回事!
- 好郁闷
- struts2的fileupload上传提示错误但文件上传成功
- 小菜的问题
<copy todir="myproject/web/WEB-INF/classes">
<fileset dir="myproject/src" includes="**/*.properties"/>
</copy>
<copy todir="myproject/web/WEB-INF/classes">
<fileset dir="myproject/src" includes="**/*.xml"/>
</copy>
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
或者
<exclude ...>
</fileset>
<target name="resources">
<mkdir dir="${output-classes-dir}" /> <copy todir="${output-classes-dir}">
<fileset dir="${src-main-java-dir}">
<exclude name="**/*.java" />
</fileset>
<fileset dir="${src-main-resources-dir}">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>