ant

PMD plugin fails after upgrading Sonarqube to 4.5.4

守給你的承諾、 提交于 2019-12-24 04:08:33
问题 I am upgrading my existing SonarQube 3.7.4 installation to the new LTS release 4.5.4 . I'd like to reuse my ruleset and I am using the sonarqube ant task (as before) to analyze my projects. After upgrading the sonar installation and the ant task to 2.2 without changing anything else I'm getting a NoClassDefFoundError while executing the ant task: build.xml:1659: org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution

java.lang.ClassNotFoundException for package com.twilio.sdk

三世轮回 提交于 2019-12-24 04:03:31
问题 This is in continuation to my previous question: Getting compile error: package com.twilio.sdk does not exist I got to resolve the complie error and now trying to run the uiautomator test on an android device. However, I am getting java.lang.ClassNotFoundException as the android device would not have Twilio API jars/classes. So, I searched for solutions where I could build my final jar with Twilio API jar or the classes within that. I came across ' jar-jar ' and ' one-jar ' approaches to do

How to import existing java web projects with ant build.xml

怎甘沉沦 提交于 2019-12-24 03:54:10
问题 I am trying to import an existing java web projects (built using ant build.xml) into Eclipse, using the Import functionality, but Eclipse does not recognize it as a project. How can I import the projects into eclipse? --- Edit --- What I did was to import the project as Java project. Yes there is an option in Eclipse 3.5 to import ant project into eclipse. New Project -> Java Project -> Import Ant project(or something similar). 回答1: For Juno, do File->New->Other, then select File -> New ->

JUnit test fails in Ant with `<junit>` task but passes with `<exec>`?

痴心易碎 提交于 2019-12-24 03:29:54
问题 I am automating my JUnit tests into my Ant build. However, my simple test only passes when run from the IDE and commandline but fails with Ant's <junit> task. When I run it from the commandline (I am technically using the Ant <exec> task) the result is: clean: compile_tests: [javac] Compiling 2 source files to C:\MY_TEMP junit_exec: [exec] JUnit version 4.10 [exec] . [exec] Time: 0.004 [exec] [exec] OK (1 test) [exec] BUILD SUCCESSFUL Total time: 1 second but when I use the <junit> task:

Sensibility of combined Maven/Ant+Ivy build management for dual platform Desktop/Android deployment?

China☆狼群 提交于 2019-12-24 03:23:55
问题 I'm currently preparing to start a new project and wondering about the choice of build management tools (non-exclusive alternatives of Maven and Ant+Ivy). The general scenario is as follows: small, several-person project, all developers use Eclipse as the IDE, two targets: Android (primary), and Java SE, we'll be in CI (Jenkins specifically), so some sort of build management is required. Regarding the envisioned project structure: one general module, with most of the code and common

other option at place of <bool> tag

做~自己de王妃 提交于 2019-12-24 02:57:16
问题 <if> <bool> <isgreaterthan arg1="${abc}" arg2="${xyz}"/> </bool> </if> when i am running the code, it's showing the error if doesn't support the nested "bool" element. is there any other option is there at the place of bool which supported by if 回答1: Ant Flaka is a new Ant Plugin that provides an innovative Expression Language which makes many scripting part obsolete. Beside that Flaka provides conditional and repetitive control structures like when, unless, while, for, choose, switch .. Your

In Ant, how can I test if a property ends with a given value?

风格不统一 提交于 2019-12-24 02:52:23
问题 In Ant, how can I test if a property ends with a given value? For example <property name="destdir" value="D:\FeiLong Soft\Essential\Development\repository\org\springframework\spring-beans" /> how can I test if ${destdir} ends with "spring-beans" ? additional: In my ant-contrib-1.0b3.jar, without 'endswith' task~~ 回答1: As Matteo, Ant-Contrib contains a lot of nice stuff, and I use it heavily. However, in this case can simply use the <basename> task: <basename property="basedir.name" file="$

Ant: get multiple matches with propertyregex

时光毁灭记忆、已成空白 提交于 2019-12-24 02:24:14
问题 I have these (sample) lines in a HTML-file: test.ABC.test test.ABCD.test test.ABCE.test And this Ant propertyregex : <loadfile property="getRecords" srcFile="./index.html"/> <propertyregex property="record" input="${getRecords}" regexp="test\.([^\.]*)\.test" select="\1" casesensitive="true" override="true" global="true" /> <echo message="${record}" /> The result is just ABC But I'd like to get all matches. How can I get ABC ABCD ABCE as result? 回答1: Not sure about the propertyregex problem,

ant install to deploy Tomcat webapp failing with permission problem

喜你入骨 提交于 2019-12-24 02:21:21
问题 I've been following along the very good Tomcat6 Application Developers Guide. I've grabbed their build.xml which contains the handy ant task called install that uses the catalina-ant.jar task deploy . <target name="install" depends="compile" description="Install application to servlet container"> <deploy url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}" localWar="file://${build.home}"/> </target> My project sits currently in /home/leif/test

Missing ant and “code 8” errors when building multi-device hybrid application project

馋奶兔 提交于 2019-12-24 01:54:41
问题 I have installed Multi Device Hybrid apps and when I'm building and debugging new project it showing these three errors Error 1 executing command 'ant', make sure you have ant installed and added to your path. Error 2 C:\Users\User\.cordova\lib\android\cordova\3.5.0\bin\create.bat: Command failed with exit code 8 Error 3 The command ""C:\Users\User\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform iOS --configuration Debug --projectDir . --projectName "BlankCordovaApp2" -