ant

Cordova: How to change HTML source directory?

拈花ヽ惹草 提交于 2019-12-22 11:28:27
问题 I am trying to use Cordova 3.4 in conjunction with AngularJS. I followed this tutorial and at some point it asks me to alter html.source.dir and html.asset.dir in ant.properties file. However, I am not being able to find this file anywhere in my source directory. How do I change html source directory in Cordova? Regards, JadeSync. 回答1: turns out ant.properties do not come bundled with new versions of Cordova. I had to alter Gruntfile.js to change these directories. 来源: https://stackoverflow

I need Eclipse to deploy the WAR file my ANT script builds, not what it builds internally

蹲街弑〆低调 提交于 2019-12-22 11:13:03
问题 I'm using Eclipse Helios. I have a dynamic web project going and I've set up Eclipse to use an Ant Builder to generate a WAR file. This all works fine; if I change a .java file, Eclipse automatically runs my build.xml via Ant and updates my WAR. If I deploy the WAR to an external instance of Tomcat, it works perfectly. However, when I tell Eclipse to run my project under Tomcat, it is not using the WAR file generated by the Ant build, or using my Ant script to generate a temporary WAR. I know

Commenting and uncommenting XML via Python

末鹿安然 提交于 2019-12-22 11:10:08
问题 I would like to know of a way to comment and uncomment an element in XML using Python. <target depends="create-build-dir" name="build-Folio"> <property name="project.name" value="Folio"/> <ant antfile="build.xml" dir="Folio/FolioUI" inheritall="false" target="package"/> <ant antfile="build.xml" dir="Folio/Folio" inheritall="false" target="package"/> </target> How can I get it to look like this: <target depends="create-build-dir" name="build-Folio"> <property name="project.name" value="Folio"/

Getting a jar along with its sources and javadoc

天大地大妈咪最大 提交于 2019-12-22 10:58:52
问题 With the following in ivy.xml : <dependency org="com.amazonaws" name="aws-java-sdk" rev="1.4.5"> <artifact name="aws-java-sdk" ext="jar"/> </dependency> It downloads aws-java-sdk-1.4.5.jar and this is the AWS SDK, i.e. classes. That's fine but I'd also like to get the Javadoc and sources. Following advice from Ivy: Fetching Javadocs and Sources I put the following in ivy.xml <configurations> <conf name="default" /> <conf name="compile" visibility="public"/> <conf name="sources" visibility=

ivy retrieve leads to “module not found: org.slf4j#slf4j-api;${slf4j.version}”

倾然丶 夕夏残阳落幕 提交于 2019-12-22 10:55:32
问题 My question is, why am I able to pull dependencies from some, but not all, of the public ivy repos? I am using an ant build.xml script to call the ivy:retrieve command. Here is the relevant line from my ivy.xml file, where I have removed all of the other dependencies for clarity: <dependencies> <dependency org="log4j" name="log4j" rev="1.2.16"/> </dependencies> which is being pulled from a public repository given in my ivysettings.xml file <!-- General public repository !--> <ibiblio name=

java.lang.NoClassDefFoundError in Eclipse, but not with Ant

狂风中的少年 提交于 2019-12-22 10:55:14
问题 I have a quite weird problem with some Android projects and Eclipse. I have a number of Android projects that all use much of the same code, and have therefore moved a lot of code into an Android Library project. This has, for a long time, worked quite well for three apps. Today, I wanted to use the library for a fourth app as well, and ran into trouble. Basically, the situation is as follows: Library project: contains a set of activities as well as some utility classes New project:

How does Apache Ivy resolve the variables in artifact patterns provided in the ivysettings.xml file?

喜你入骨 提交于 2019-12-22 10:43:22
问题 If my ivysettings.xml file includes: <url name="com.springsource.repository.bundles.external"> <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> </url> And my ivy.xml file includes: <dependency org="org.junit" name="com.springsource.org.junit" rev="4.4.0" /> From when

Classpath problems:running ant java task with Maven Antrun plugin

亡梦爱人 提交于 2019-12-22 10:39:09
问题 When running ant task from maven ant run plugin I can set maven classpath as an ant property. However when I try to run <ant:java task setting this exact classpath I get the error that the reference can not be find. As if the whole classpath is interpreted as one jar. Is there a way to somehow set this classpath to ant java task? (from maven) <plugin> <artifactId>maven-antrun-plugin</artifactId> .... <property name="compile_classpath" refid="maven.compile.classpath"/> .... (from ant) ...

Building Hadoop on Windows Error: Ant BuildException

一世执手 提交于 2019-12-22 10:36:13
问题 Trying to build Hadoop 2.4.1 on Windows Server 2012 using Maven 3.2.2 by running mvn package -Pdist,native-win -DskipTests -Dtar Currently getting the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7: run (pre-dist) on project hadoop-project-dist: An Ant BuildException has occured : Execute failed: java.io.IOException: Cannot run program "sh" (in directory "C: \Hadoop\hadoop-2.4.1-src\hadoop-project-dist\target"): CreateProcess error=2, Th e

How to detect whether tomcat and ant are installed on linux machine

这一生的挚爱 提交于 2019-12-22 10:34:22
问题 I am trying to install Tomcat and Ant on my linux machine, but before installing them i just need to check whether they are already installed or not. Regarding tomcat : I googled a lot and searched on my machine in the following directories for tomcat /usr/local/, /opt/, /usr/share/ but i din't find tomcat folder in any of the above path, whether it indicates that tomcat is not installed ? so actually 1. what is the path to `look/find` exactly to know/check whether tomcat is installed or not