ant

Running P2 Ant tasks outside Eclipse

别等时光非礼了梦想. 提交于 2019-12-18 11:34:32
问题 I got ant script running fine inside Eclipse Here is a piece of it : <p2.composite.repository failOnExists="true"> <repository location="file:/${basedir}/compRepo" name="Repository description goes here" /> <add> <repository location="http://url/Eclipse/repo/Galileo-3.5.1/" /> <repository location="http://another-url/Java/repo/4.0/" /> <repository location="${diag.location}" /> </add> </p2.composite.repository> But I would like Hudson CI server to be able to run it, but, no matter all the

This compilation unit is not on the build path of a Java project

我是研究僧i 提交于 2019-12-18 11:18:49
问题 When I try to use ctrl+space this error is shown: This compilation unit is not on the build path of a Java project. I see that there are similar topics but my work environment is Eclipse and i pull my project from Git (I import project as general project) and i use Apache Ant. Can anyone help me? 回答1: Since you imported the project as a General Project, it does not have the java nature and that is the problem. Add the below lines in the .project file of your workspace and refresh. <natures>

signing applications automatically with password in ant

余生长醉 提交于 2019-12-18 11:13:12
问题 Currently i have a build process in place for all of our apps using ANT . I am adding the ability to build a release now and sign the apps. Currently i have the ant.properties with the correct properties. And it is in all the projects. And when i build the projects it works fine. Signs, aligns and gives me what i need. HOWEVER, we have many apps and they are all built in the build process. So the problem is, the user is having to type the password in at the Please enter keystore password and

Disable DTD warning for Ant scripts in Eclipse?

你离开我真会死。 提交于 2019-12-18 10:58:18
问题 I'm using Eclipse Ganymede. Everything works fine, but I have an anal-retentive yearning for a warning-free Problems tab. Right now it (correctly) complains about my Ant scripts: "No grammar constraints (DTD or XML schema) detected for the document." Is there any way to turn that off for just those files? Ideally I'd like it to still warn me if my other schema-constrained files were missing the schema declarations. 回答1: The simplest is to supply a minimal DTD to shut it up. <!DOCTYPE project>

Run batch scripts on a remote server (windows) from jenkins

安稳与你 提交于 2019-12-18 10:37:11
问题 I've got a continuous integration server (Jenkins ) which builds my code (checks for compilation errors) and runs tests and then deploys the files to a remote server (not a war file, but the actual file structure) I do this with a Jenkins plugin which allows me to transfer files via samba, it does this nightly. Now, what I need to do is run an ant command on the remote server. And after that I need to start the application server on the remote server, the application server is started by

How to include version string in the filename when building Android apk with ant?

前提是你 提交于 2019-12-18 10:35:41
问题 Normally we build android package in debug mode with the command ant debug and got the apk filename AppName-debug.apk . Is there any way to generate the apk file in the format of AppName-debug-<version-number>.apk directly without 'mv' command? Thanks. 回答1: I have done this in an automated way, by using the info from the Android manifest. My approach was to modify the local project ant build.xml file to import a custom copy of the master build.xml file, in the latest version of the SDK the

How to Pass parameters for a Ant script , which is invoked via shell script?

旧城冷巷雨未停 提交于 2019-12-18 10:22:39
问题 I need to invoke a ant script via shell script. Let us consider the parameters for ant script are a,b,c. how can i pass the parameter for those variables? I must provide the parameters for ant vis invoke the shell script. can anyone help me on this? 回答1: Do you mean assigning value to a property from command line? If so, try -DpropertyName=itsValue For example, <project> <target name="hi"> <property name="person" value="world"/> <echo message="Hello ${person}"/> </target> </project> and then

Ant unable to find javac, JAVA_HOME won't set on Ubuntu

房东的猫 提交于 2019-12-18 10:18:22
问题 I have an Android Project called Hello on my Ubuntu 10.04 i386 Server (headless). It contains all things an Android project folder should have. I first build the project in bash while in the Project folder using this synax: ./android create project --target 5 --name HelloCompile --path ../../Projects/Hello --activity HelloActivity --package com.code.Hello then I try to build the .apk with ant like so: ant debug I get this error: BUILD FAILED /home/myusername/www/sdk/tools/ant/main_rules.xml

Can someone explain the ivy.xml dependency's conf attribute?

只谈情不闲聊 提交于 2019-12-18 09:59:21
问题 I can't find any thorough explanation of the Ivy dependency tag's conf attribute: <dependency org="hibernate" name="hibernate" rev="3.1.3" conf="runtime, standalone -> runtime(*)"/> See that conf attribute? I can't find any explanation (that I can understand) about the right hand side of the -> symbol. PLEASE keep in mind I don't know the first thing about Maven so please explain this attribute with that consideration. Yes, I've already looked at this: http://ant.apache.org/ivy/history/latest

Automated Unit Testing with JavaScript

我是研究僧i 提交于 2019-12-18 09:55:11
问题 I'm trying to incorporate some JavaScript unit testing into my automated build process. Currently JSUnit works well with JUnit, but it seems to be abandonware and lacks good support for AJAX, debugging, and timeouts. Has anyone had any luck automating (with ANT) a unit testing library such as YUI test, JQuery's QUnit, or jQUnit (http://code.google.com/p/jqunit/)? Note: I use a custom built AJAX library, so the problem with Dojo's DOH is that it requires you to use their own AJAX function