ant

How to exclude a source package using javac in Ant?

女生的网名这么多〃 提交于 2020-01-03 09:25:30
问题 I've looked at a bunch of different examples, and tried several variations, but can't seem to get this working correctly. It also appears that you can't exclude an entire directory with javac, but only files, which I suppose means you can't specify a package? Here is what I have: <javac srcdir="src" destdir="WEB-INF/classes" excludes="path/to/excluded/package/*.java"> <classpath refid="compile.classpath"/> <!-- reference defined earlier --> </javac> 回答1: You can exclude whole directories or

Installing PhoneGap, error executing command 'ant'

牧云@^-^@ 提交于 2020-01-03 08:44:09
问题 When installing PhoneGap via nodeJS i got an error when trying to run my app (installing phonegap and creating the app worked): C:\Users\arko\my-app>phonegap run android [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] adding the Android platform... [error] An error occured during creation of android sub-project. C:\Users\arko\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:126 throw e; ^ Error: ERROR : executing command 'ant', make

Ant scp task: JSchException: invalid privatekey [duplicate]

徘徊边缘 提交于 2020-01-03 07:03:05
问题 This question already has answers here : “Invalid privatekey” when using JSch (3 answers) Closed 10 months ago . I created a new key pair using ssh-keygen and added the public key on the server. Using sftp -i private_key_file user@server I can successfully open a connection to the server and put files. However, when I try to use the Ant scp task I receive: com.jcraft.jsch.JSchException: invalid privatekey: [B@5e9d5728 The relevant part of the Ant script: <scp file="local-file.zip" trust="true

How to read in arguments passed via ant to testng.xml

六眼飞鱼酱① 提交于 2020-01-03 05:33:08
问题 Here is the scenario: Have a shell script that calls ant with one argument. The ant in turn executes testng.xml (suite file) passing the same argument and testng in turn executes the test within passing the same argument. In my case, I am passing the browser string eg.(firefox, iexplore) argument that will specify which browser test will run on. I want to be able to have my test result output tell me which browser the test run in. I grab the argument from command line in ant by so: ...

Building and Running Velocity Generating HTML

心不动则不痛 提交于 2020-01-03 05:14:08
问题 I'm very new to using Velocity. I am trying to use it to generate an HTML form. I am working in Eclipse. The following jars are in my classpath: velocity-dep-1.5.jar commons-collections.jar commons-lang.jar log4j-1.2.8.jar ant.jar I am running an ant build file to build my project, but I don't see the HTML being generated. Is there something I'm missing in order to get it to actually generate the HTML file? The tutorial I was following only has two files that I based mine off of. It worked

Jenkins配置git+ant,持续集成selenium+java自动化测试项目

时光毁灭记忆、已成空白 提交于 2020-01-03 05:02:08
前面介绍了Jenkins的安装,这篇博客记录一下Jenkins的使用,这里我是用git拉取代码,用ant构建,项目还是之前写过的QQ邮箱。 1.Jenkins里面要想使用Git,ant必须要安装插件,在available里面找到Git plugin和ant plugins,并安装。因为我已经安装过了,所以在Installed里面可以直接看到 2.全局工具配置,要把使用的工具配置到Jenkins里面。这里我只配置了JDK,ANT,GIT,因为只用到了这几个,位置都是他们的安装位置。 3.新建项目 输入项目名,选择自由风格,点击OK 输入github的源码地址,上篇讲过如何将代码上传到git仓库 选择之前设置的ant和JDK 构建的时候,选择Execute Windows batch command,输入ant命令 在这个过程中也可以选择定时执行,执行完后发邮件等配置 4.构建项目 Build History里面就显示构建过程了 点击进入 这里看到自动化测试执行成功了,但是没有打开浏览器执行 来源: CSDN 作者: woshiweiweily 链接: https://blog.csdn.net/woshiweiweily/article/details/103799314

Continuous Delivery Scenario - implementing Rollback

丶灬走出姿态 提交于 2020-01-03 04:51:11
问题 Imagine I have a vanilla continuous delivery scenario with a Java webapp. This scenario has: - one build server running cruisecontrol - one web server running Tomcat with tomcat manager running One of the Ant build targets running on the build server builds a war file and then uses catalina-ant to remotely deploy the web server using the Tomcat manager. To be truly useful - we need to be able to roll back the deployment. Given this vanilla setup, what extra pieces of the puzzle do I need to

Use command-line Ant to build Eclipse Ant project

[亡魂溺海] 提交于 2020-01-03 03:01:59
问题 For my current project I need to run the build of our Java projects. But for the current task I am doing, Eclipse is not helping at all. All tools I need are not integrated in Eclipse, everything I do in Eclipse is clicking the Ant tasks. So is there a way to just do it by command line? Simply calling the command arguments for Ant does not work. I am running on Ubuntu Linux. 回答1: You can invoke the command-line builder with the following command. eclipsec -nosplash -application org.eclipse

Java NoClassDefFoundError with Ant

放肆的年华 提交于 2020-01-03 03:00:28
问题 I have a third-party .jar file in a res/lib folder. The ANT build.xml looks like this: <?xml version="1.0"?> <project name="my.project" basedir="." default="build"> <property name="src.dir" value="src"/> <property name="build.dir" value="build/classes"/> <path id="master-classpath"> <fileset dir="res/lib"> <include name="*.jar"/> </fileset> <pathelement path="${build.dir}"/> </path> <target name="build"> <mkdir dir="${build.dir}"/> <javac destdir="${build.dir}" optimize="true"> <src path="$

Java NoClassDefFoundError with Ant

…衆ロ難τιáo~ 提交于 2020-01-03 03:00:06
问题 I have a third-party .jar file in a res/lib folder. The ANT build.xml looks like this: <?xml version="1.0"?> <project name="my.project" basedir="." default="build"> <property name="src.dir" value="src"/> <property name="build.dir" value="build/classes"/> <path id="master-classpath"> <fileset dir="res/lib"> <include name="*.jar"/> </fileset> <pathelement path="${build.dir}"/> </path> <target name="build"> <mkdir dir="${build.dir}"/> <javac destdir="${build.dir}" optimize="true"> <src path="$