ant

Passing environment variable to ant task, without ANT_OPTS

让人想犯罪 __ 提交于 2019-12-08 00:14:17
问题 I'm calling the Jasper ant task, and I want to set the org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING environment variable. I can set ANT_OPTS to be -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false and it works correctly. However, I want a setting I can put into the build.xml, so I don't need to tell my teammates that they need to set ANT_OPTS. I've tried <property name="env.org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING" value="false"/> but that doesn't seem

Why would MST not include files with different content

十年热恋 提交于 2019-12-07 23:55:59
问题 Trying to make a multilingual installer - the process is working in general, but seems to be failing for localised files that are to be installed. Each of the localised installers works fine as a standalone and installs the localised files like the eula.pdf. I'm hoping that I'm just missing a flag on the transform generation step (or maybe using the wrong tool?) Process being to start by having a bunch of installers 1 for each language. To build each installer we are 'lighting' using -b

Where is APK file after “phonegap build android” command?

余生颓废 提交于 2019-12-07 22:38:17
问题 After "phonegap build android" command,i searched .apk file on D:\firstapp\platforms\android\ant-build but i found only the CordovaApp-debug.apk and CordovaApp-debug-unaligned.apk file... where can i get my .apk file, Also my app name if firstapp , still only CordovaApp-debug.apk file found.. Actually i'm new to phonegap, help me... 回答1: You found the right apk. Cordova is the new name for Phone Gap. CordovaApp-debug.apk is your apk. The -debug part means that it was signed with the default

Setting ant property with bash command result

廉价感情. 提交于 2019-12-07 21:46:56
问题 How could I set ant property the value which is the result of bash script execution? For example, I need to have target which utilizes svn and bash utilities in order to control build execution. Speaking more specifically, target that I'm trying to create will be used to define, whether there are modified files in deployed application via command: svn stat | awk -F '' ' $1=="A" || $1 == "C" || $1=="M" || $1 == "D" || $1 == "R" {print $1}' | wc -l I need to set the result of this command to

Netbeans 9.0 Incubating - Does not make `lib` directory in `dist` for migrated/updated Java 10 project

假装没事ソ 提交于 2019-12-07 20:46:59
问题 I have started using NetBeans 9.0 (incubating) with Java 10. I created a new test Java Application project and ticked 'Use Dedicated Folder for Storing Libraries' ('\lib') when creating it. I also set the JDK/Java version to 10 . I then included Apache Commons Codec 1.11 as a dependency library. I didn't do anything else, other than import the Base64 class from the binary package in the main class. However, when I build the application, NetBeans doesn't create a lib directory in the dist

What's causing this error: “SDK component at air/android/device/Runtime.apk is out of date”

喜夏-厌秋 提交于 2019-12-07 20:37:06
问题 I'm currently working on an Adobe AIR project, for iOS and Android. We automatically build the thing with Jenkins running an ANT build script. It packages different versions of the application based on different compiles (release and test versions) and the test versions get even more different configs packaged in them. So far, so good. The build works on my local machine running ANT 1.8.4 combined with the AIR 3.6 SDK. The problem is, that sometimes , or lately most of the time , on the

基于QT 5.7.0 for Android 的 Windows 开发环境搭建

让人想犯罪 __ 提交于 2019-12-07 20:17:57
基于QT 5.7.0 for Android 的 Windows 开发环境搭建 一、下载软件 1.jdk:jdk-8u102-windows-i586.exe http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-windows-i586.exe 2.sdk:android-studio-bundle-143.2915827-windows.exe https://developer.android.com/studio/index.html https://dl.google.com/dl/android/studio/install/2.1.2.0/android-studio-bundle-143.2915827-windows.exe 3.ndk: android-ndk-r12b-windows-x86.zip https://developer.android.com/ndk/downloads/index.html http://dl.google.com/android/repository/android-ndk-r12b

Ant EXEC failing to run bash script

久未见 提交于 2019-12-07 19:39:33
问题 I am trying to use ant to run a bash script. Ive found that the exec directive is the tool for the job I created a bash script test.sh and in my ant target i added: <project basedir="."> <property name="temp.deployment.dir" value="temp_deployment_dir"/> <property name="temp.dir" value="temp_upload_dir"/> <property name="src.dir" value="www"/> <property name="js.dir" value="${src.dir}/public/js"/> <property name="css.dir" value="${src.dir}/public/css"/> <property name="img.dir" value="${src

ANT replacing strings in specified files using file with properties

拜拜、爱过 提交于 2019-12-07 19:39:15
问题 I have a properties in file dev.properties and they look like this: test.url=https://www.example.com/ [...] and in project files there is a token [[test.url]] which I want to replace by https://www.example.com/. I just want to define all tokens in dev.properties and use them in build script, but without modifying build script and I want to replace those tokens in a specified files like *.php, *.html, etc. Can someone give me a suggestions how to do it? Thanks. 回答1: try this: <copy file="input

How can I execute a Perl script using the Ant exec task?

佐手、 提交于 2019-12-07 19:23:07
问题 I currently have this in my Ant build script: <exec dir="${basedir}" executable="perl"> <arg line="${basedir}/version.pl -major"/> </exec> However, when that runs, I get this error message: [exec] Could not open -major [exec] Result: 2 To me, that says that what I have is trying to run a file called -major, which doesn't exist. The file is version.pl which takes an argument of -major. How can I alter this to run version.pl with the argument -major? Note that I am running the ant script on a