ant

android ant uibuild.xml:198: null returned: 1

爷,独闯天下 提交于 2019-12-11 10:48:12
问题 I am new to ant and Android uiautomator. When using ant to build my testing program I get: -dex: [dex] input: c:\Eclipse\workspace\Android\bin\classes [dex] Converting compiled files and external libraries into c:\Eclipse\wor kspace\Android\bin\classes.dex... [dx] no classfiles specified BUILD FAILED C:\Android\sdk\tools\ant\uibuild.xml:198: null returned: 1 This is on the sample test code at: http://developer.android.com/tools/testing/testing_ui.html#sample The full output from running the

Ivy used to retrieve guava, now it does not

为君一笑 提交于 2019-12-11 10:46:30
问题 Related question: Ivy cached a dependency file, but not copy to my lib My situation is nearly identical, except that this has been working for quite a while until recently. Ivy retrieves other jars: transitive dependencies like com.google.code.findbugs, and specified artifacts like junit. It does not copy the guava jar to my lib. ivy.xml: <ivy-module version="2.0"> <info organisation="mine" module="external-deps"/> <dependencies> <dependency org="com.google.guava" name="guava" rev="14.0.1"/>

HTML5 Boilerplate: is it possible to inline @import for multiple stylesheets with the build script?

ε祈祈猫儿з 提交于 2019-12-11 10:39:02
问题 Currently, the H5BP ant build script (line 817) takes "style.css" and inlines the imports specified there. However, I'd like to have this functionality for multiple stylesheets. My current directory structure is like this: css/ h5bp/ h5bp.normalize.css h5bp.helper.classes.css h5bp.media.queries.css h5bp.print.css pages/ home.page.styles.css about.page.styles.css upload.page.styles.css download.page.styles.css ... extras/ ie.styles.css layout.styles.css font.styles.css ... I'd like to be able

How to delete files that are not present in another directory?

好久不见. 提交于 2019-12-11 10:23:46
问题 I have two directories, let's call them src and build . My build system works so that for all files with mtime more recent in src than in build it copies the file from src to buid and does some transformations (minification, versioning, etc.). Otherwise skips as the file is considered up to date. This however poses a problem when source file is deleted, as its built version is still present in build and gets into map file generated afterwards. $ ls src example1.js example2.js $ ant do-the

Resolve Ivy dependency version order

倾然丶 夕夏残阳落幕 提交于 2019-12-11 10:11:49
问题 In my build artifact repository, I have builds from both a branch and a trunk. I have tested that my resolve works to the branch, and grabs the correct item. But this doesn't work if the dependency is also in the trunk repo. In this case it grabs the dependency from the trunk and not my branch. I need resolve to pull a dependency from the trunk repo if it's not in the branch, but if the dependency is in the branch, I need the branch version, not the trunk version. How can I do this in Ivy? I

Ant : Junit failure triggers a haltonfailure

旧巷老猫 提交于 2019-12-11 09:59:01
问题 I have found that the following : <junit haltonfailure="no" haltonerror="no" > <!-- some tests guaranteed to call Assert.fail(); --> </junit> Will not prematurely halt (all tests will run). HOWEVER ...... The following <junit haltonfailure="no" haltonerror="yes" > Will fail after the FIRST failed test. Note that in this case, I'm guaranteeing that the test is failing via Assert.fail(); This, I am assuming that either 1) Ant considers an ERROR to be a subclass of a FAILURE. or 2) There is a

Why isn't my log4j.properties file getting used?

核能气质少年 提交于 2019-12-11 09:56:45
问题 I have a log4j.properties file in my current directory that specifies some things to log at DEBUG level, and everything else as INFO: log4j.rootLogger=WARN, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=[%5p] %d{mm:ss} (%F:%M:%L)%n%m%n%n log4j.logger.com.xcski=DEBUG log4j.logger.org.apache.nutch.protocol.http=DEBUG log4j.logger.org.apache.nutch.fetcher.Fetcher=DEBUG And I

Platform 'Android' referenced in the project file 'san-angeles' cannot be found

喜你入骨 提交于 2019-12-11 09:55:44
问题 i was trying to run the "San-angeles" example of Visual Studio 2010 and Android so when i double-clicked the .sln file i got 2 warnings : 1) C:\vs-android_samples\san-angeles\san-angeles.vcxproj : warning : Platform 'Android' referenced in the project file 'san-angeles' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\Android'. 2) C:\vs-android_samples\san-angeles\san-angeles.vcxproj : error : Platform 'Android' referenced in the project file 'san

Class cast exceptions with ant/jenkins generated EAR on WebSphere 6.1

我怕爱的太早我们不能终老 提交于 2019-12-11 09:51:07
问题 I'm having runtime class cast exceptions after deploying an ear generated as part of an ant build script running on Jenkins to Websphere 6.1. The cast class exceptions are in some DAO methods which cast Objects returned from SQL queries to specific classes. If i generate the EAR from within Eclipse (RAD) then the class cast exceptions don't occur, and comparing the class files from the jenkins/ant generated ear with the ones from Eclipse show different file sizes and contents. I'm trying to

Buildfile for Java with external jars

天大地大妈咪最大 提交于 2019-12-11 09:50:00
问题 I have tried and tried again to develop an Ant Buildfile for my project outline here: NoClassDefFoundError when running Java from Windows command line with external jar files This is the Buildfile I have tried to run: <project> <target name="clean"> <delete dir="build" /> </target> <path id="jarpath"> <fileset dir="C:\JAR"> <include name="**" /> </fileset> </path> <target name="compile"> <mkdir dir="build/classes" /> <javac srcdir="." destdir="build/classes" includeantruntime="false">