ant

ant build 后出现“Unable to locate tools.jar”情况解决实例

徘徊边缘 提交于 2020-01-11 17:37:10
转自: http://www.51testing.com/?uid-272264-action-viewspace-itemid-200393 命令行敲ant命令后提示:“Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li”;ANT_HOME环境变量已经配置; 解决途径:将“C:\Program Files\Java\jdk1.6.0_16\lib”目录下的tools.jar文件拷贝到“C:\Program Files\Java\jre6\lib”目录下,重新运行命令ant,运行正常,问题解决。 ----------上面的就解决了-------下面是一些环境配置错误的改正 晚上安装了半天ant,就是没有设置好。下面说下经验: 1、安装部署配置: (1) 下载:Apache Ant 的下载地址: http://ant.apache.org/bindownload.cgi (2) 配置:例如JDK装在c:\jdk;ANT装在c:\ant 设置环境变量: JAVA_HOME:c:\jdk ANT_HOME:c:\ant PATH: %path%;%JAVA_HOME%;%ANT_HOME% (3) 测试 :打开cmd,输入ant -version 正常显示就可以了。 2

Windows下 ant配置 以及 Unable to locate tools.jar

帅比萌擦擦* 提交于 2020-01-11 17:34:54
转自: http://blog.csdn.net/zygsee/article/details/4457701 晚上安装了半天ant,就是没有设置好。下面说下经验: 1、安装部署配置: (1) 下载:Apache Ant 的下载地址: http://ant.apache.org/bindownload.cgi (2) 配置:例如JDK装在c:/jdk;ANT装在c:/ant 设置环境变量: JAVA_HOME:c:/jdk ANT_HOME:c:/ant PATH: %path%;%JAVA_HOME%;%ANT_HOME% (3) 测试:打开cmd,输入ant -version 正常显示就可以了。 2、Unable to locate tools.jar 我以前一直没有设置过JAVA_HOME,一般都是直接全路径写入path中,输入ant 便提示“Unable to locate tools.jar”。 后来我设置为JDK_HOME ANT_HOME,输入ant仍然是这样的提示!!晕 记事本打开“ant.bat”查看,发现里面取的时候都是从JAVA_HOME取,将“JDK_HOME”改为“JAVA_HOME”果然正常通过!! 3、小解:看来有些插件还是需要设置JAVA_HOME变量,使用全路径还是不靠谱!! 来源: https://www.cnblogs.com/jubincn

ant design pro 项目实现路由级的动态加载按需加载

旧城冷巷雨未停 提交于 2020-01-11 17:20:45
实现路由级的动态加载(code splitting),可按需指定哪一级的按需加载。 配置项包含: webpackChunkName,是否通过 webpackChunkName - 实现有意义的异步文件名 loadingComponent,指定加载时的组件路径 level,指定按需加载的路由等级 export default { plugins: [ dynamicImport: { loadingComponent: './components/PageLoading/index', webpackChunkName: true, level: 3, }, ], }; 来源: https://www.cnblogs.com/cckui/p/12180347.html

<ivy:cachepath> is SLOW, how to avoid doing it every build and improve ivy cachepath performance?

安稳与你 提交于 2020-01-11 14:10:31
问题 Compile times are slowed by 4s resolving dependant libs for my javac step every build on this line: <target name="compile" depends="bootstrap"> <ivy:cachepath pathid="classpath"/> <!-- SLOW --> I want to essentially CACHE the results of ivy:cachepath so I don't have to do it every build. I want ${classpath} to exist in less than 0.2 seconds Context: This is a vanilla ant build.xml which bootstraps ivy, uses an ivy.xml file that lists standard maven dependencies, then calls javac with those

<ivy:cachepath> is SLOW, how to avoid doing it every build and improve ivy cachepath performance?

跟風遠走 提交于 2020-01-11 14:10:09
问题 Compile times are slowed by 4s resolving dependant libs for my javac step every build on this line: <target name="compile" depends="bootstrap"> <ivy:cachepath pathid="classpath"/> <!-- SLOW --> I want to essentially CACHE the results of ivy:cachepath so I don't have to do it every build. I want ${classpath} to exist in less than 0.2 seconds Context: This is a vanilla ant build.xml which bootstraps ivy, uses an ivy.xml file that lists standard maven dependencies, then calls javac with those

JSP is not getting copied while creating war using Ant

情到浓时终转凉″ 提交于 2020-01-11 12:17:45
问题 I am using following Ant script to create a war of simple web application. <?xml version="1.0" encoding="UTF-8"?> <project name="MyProject" default="war"> <path id="compile.classpath"> <fileset dir="WebContent/WEB-INF/lib"> <include name="*.jar" /> </fileset> </path> <target name="compile"> <javac destdir="WebContent/WEB-INF/classes" debug="true" srcdir="src"> <classpath refid="compile.classpath" /> </javac> </target> <target name="war" depends="compile"> <war destfile="build/myproject.war"

JSP is not getting copied while creating war using Ant

て烟熏妆下的殇ゞ 提交于 2020-01-11 12:15:20
问题 I am using following Ant script to create a war of simple web application. <?xml version="1.0" encoding="UTF-8"?> <project name="MyProject" default="war"> <path id="compile.classpath"> <fileset dir="WebContent/WEB-INF/lib"> <include name="*.jar" /> </fileset> </path> <target name="compile"> <javac destdir="WebContent/WEB-INF/classes" debug="true" srcdir="src"> <classpath refid="compile.classpath" /> </javac> </target> <target name="war" depends="compile"> <war destfile="build/myproject.war"

setting up environment variables in windows 7 for java and ant

故事扮演 提交于 2020-01-11 11:07:52
问题 I have a book that says to do the following. Add a JAVA_HOME and ANT_HOME environment variable. - check Add $JAVA_HOME/bin and $ANT_HOME/bin to my path variable - check When I then go to the command prompt and try ant -version it says ant is not a recognized command. If I then take the value I plugged into the ANT_HOME variable and use it in place of $ANT_HOME it all works. Is this the way it's supposed to work in windows? I'm not sure so I just figured that whatever was put in ANT_HOME was

setting up environment variables in windows 7 for java and ant

牧云@^-^@ 提交于 2020-01-11 11:07:23
问题 I have a book that says to do the following. Add a JAVA_HOME and ANT_HOME environment variable. - check Add $JAVA_HOME/bin and $ANT_HOME/bin to my path variable - check When I then go to the command prompt and try ant -version it says ant is not a recognized command. If I then take the value I plugged into the ANT_HOME variable and use it in place of $ANT_HOME it all works. Is this the way it's supposed to work in windows? I'm not sure so I just figured that whatever was put in ANT_HOME was

Start and Stop Tomcat service using Ant

天大地大妈咪最大 提交于 2020-01-11 07:55:07
问题 I need to start Tomcat application running as a service (application) in windows machine with an Ant buildfile. I am able to do the same with available batch file to start up and shutdown. But, now I want to make this happen without batch file. Note: Now tomcat is running as application service 回答1: You can do it this way: First Create a macro named service: <macrodef name="service"> <attribute name="service" /> <attribute name="action" /> <sequential> <exec executable="cmd.exe"> <arg line="