ant

Jar Dependencies (package does not exist) in Visual C++ in Visual Studio 2017

本小妞迷上赌 提交于 2019-12-25 09:46:51
问题 I'm facing an issue where I'm unable to use an external *.jar file in a "Visual C++" Android project in Visual Studio 2017 Community Edition. When I try to compile it says the package android.support.design.widget does not exist. Here is my setup: Steps to reproduce Ensure you installed Visual Studio 2017 with Cross Platform Support and open it Choose "File"->"New"->"Project..."->"Basic Application (Android Ant)"->OK Add a libs folder to the project In the project.properties file add jar.libs

Naming a file in Apache Ant based on contents of different file

混江龙づ霸主 提交于 2019-12-25 09:44:50
问题 I've got foo.js, and an ant build process that results in foo.min.js. foo.js has a header comment that includes: * $Id: foo.js 12345 2011-10-04 14:35:23Z itoltz $ Where 12345 is the revision of the file when committed to SVN. I'd like to copy foo.min.js to foo.min.12345.js 回答1: You can extract the revision number into a property using loadfile and regex. Then you can copy the file using the property. <project default="rename"> <target name="rename" depends="get-rev"> <copy file="foo.min.js"

Uiautomator Didn't find class <class> on path DexPathList

霸气de小男生 提交于 2019-12-25 08:45:00
问题 I am currently developing a Java project in order to perform automatic screenshots of my Android application, however, when performing the uiautomator command: adb shell uiautomator runtest AutoScreenshot.jar -c test.ScreenshotRoutine I am getting the following error: INSTRUMENTATION_RESULT: shortMsg=java.lang.RuntimeException INSTRUMENTATION_RESULT: longMsg=Didn't find class "test.ScreenshotRoutine" on pa th: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "

How to publish custom jars to local Apache Ivy repository

心不动则不痛 提交于 2019-12-25 08:15:39
问题 I've read all the tutorials and examples, and still cannot publish a set of custom jars in my local Ivy repository. Edit: Basically I want the same behavior as maven-install-plugin. Here's my setup. I have an Ant task which produces the jars in a given folder. The folder name is not fixed but rather passed as a property in file. I want to get all the jars in this folder and install them in my local Ivy repo so that I can use them on a next step. Here is my Ant from where I call the ivy

typedef java.util.zip.ZipException: error in opening zip file

感情迁移 提交于 2019-12-25 07:58:51
问题 I am getting the below error [typedef] at java.util.zip.ZipFile.open(Native Method) [typedef] at java.util.zip.ZipFile.<init>(ZipFile.java:114) [typedef] at java.util.zip.ZipFile.<init>(ZipFile.java:131) [typedef] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1028) [typedef] at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:147) [typedef] at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.nextElement

Mac Apache Ant version 1.8.2 instead of 1.9.6

别来无恙 提交于 2019-12-25 07:43:13
问题 I've downloaded the last apache ant version on my Mac but the version seems the old one. Any idea? myMac:~ mauri$ brew install ant ==> Downloading https://homebrew.bintray.com/bottles/ant-1.9.7.el_capitan.bottle.tar.gz ######################################################################## 100,0% ==> Pouring ant-1.9.7.el_capitan.bottle.tar.gz 🍺 /usr/local/Cellar/ant/1.9.7: 1,611 files, 34.9M myMac:~ mauri$ myMac:~ mauri$ ant -version Apache Ant(TM) version 1.8.2 compiled on December 20 2010

wldeploy on all files in deployment folder

隐身守侯 提交于 2019-12-25 07:37:38
问题 I am trying to automate my web logic deployment for my local dev environment. I currently an using a master ant build file that compiles ~60 projects and copies the related ear,war, jar files to a deployment folder off of the root. Right now we install these one by one vie the wl console. I am trying to automate this using wldeploy in the master build file. I would like to be able to feed this task a list of files to deploy sequentially. Ant-contrib has something similar but it appears to

include ANT1.7.1 jar in my build.xml for taskdefs.ResourceCount

落花浮王杯 提交于 2019-12-25 06:37:08
问题 I have a requirement where I need to search the existence of a set of files and if in case the file does not exist throw a build failure error, after much searching , I have found this code and it works on ANT1.7.1 <target name="validate.file" depends="defineAnt7,validate.dir"> <echo message = " The Filelist is : ${file.list} "/> <condition property="is.missing"> <resourcecount when="ne" count="0"> <difference id="is.missing"> <intersect> <filelist id="required" dir="${target.location}" files

IllegalAccessError: tried to access class while building Android with ANT

喜欢而已 提交于 2019-12-25 05:22:39
问题 We are building our android application with ANT . After upgrading to the latest SDK tools (Rev 21) and platform tools (Rev 16) along with setting the android:targetSdkVersion="17" in manifest.xml, our ant build fails with IllegalAccessError . Strangely a double ant release succedes: ant clean -> BUILD SUCCESSFUL ant release - > BUILD FAILED ant release - > BUILD SUCCESSFUL While obviously what we actually want to do does not: ant clean release - > BUILD FAILED I already regenerated the build

ant java task with space issue

放肆的年华 提交于 2019-12-25 05:14:36
问题 I was trying to execute a jar file via ant script. Like this <java jar="${jar.file}" fork="true" failonerror="true"> <arg line="${jar.args}"/> </java> jar.file has full path to the jar file and contains some space in it. When I executed that on Linux, there was no problem. But when I do the same on Windows I got error. java task couldn't locate the jar! I've tried all different variations like wrapping the file path with quote ("), replaced space with ", tried escaping with backslash, etc.