ant

Could not initialize class net.sourceforge.pmd.lang.xpath.Initializer

元气小坏坏 提交于 2019-12-11 23:15:48
问题 Here is my pmd script for ant build.xml <property name="pmd.dir" value="${basedir}/pmd" /><!-- directory that contains pmd.jar --> <property name="pmd.test.results" location="${build.dir}/pmd"/> <path id="pmd.lib" > <fileset dir="${pmd.dir}"> <include name="*.jar"/> <exclude name="/rulesets" /> </fileset> </path> <target name="pmd" depends="compile" > <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.lib"/> <pmd shortFilenames="true"> <ruleset>b</ruleset>

我的自动化测试历程(Selenium+TestNG+Java+ReportNG+Jenkins)

被刻印的时光 ゝ 提交于 2019-12-11 23:07:56
原地址:http://blog.csdn.net/shilinjie_8952/article/details/53380373?locationNum=11&fps=1 测试环境:Java+Selenium+TestNG,Jenkins持续集成。 测试代码 代码结构 采用页面对象模型(Page Object),减少UI修改后,对代码的影响。 Java编写,采用TestNG测试框架。 先说点概念的: Selenium Selenium是一套完整的Web应用程序测试系统,它包含了测试的录制(Selenium IDE)、编写及运行(Selenium Remote Control)和测试的并行处理(Selenium Grid)。Selenium的核心Selenium Core基于JsUnit,完全由JavaScript编写,因此可运行于任何支持JavaScript的浏览器上。 Selenium Core:Selenium的核心部分,它由一些纯js代码组成, 可以运行在windows/linux的不同browser上,而IDE是在core的基础上的一种应用, 通过UI实现类似QTP/Winner的脚本录制回放功能,它是Selenium IDE 和 Selenium RC 的引擎。 Selenium IDE: FireFox 的一个插件,支持脚本录制。 Selenium RC:

Phonegap hello world app could not launch in emulator through CLI

旧巷老猫 提交于 2019-12-11 22:13:43
问题 I installed phonegap and created simple project(hello world). I installed jdk and sdk correctly. Paths are set. I want to launch my app in emulator. I run command "cordova run android" after a bunch of statements at the this results comes BUILD SUCCESSFUL Total time: 14 seconds Built the following apk(s): D:\phonegap\myapp\platforms\android\ant-build\CordovaApp-debug.apk WARNING : No target specified, deploying to emulator 'emulator-5554'. Installing app on emulator... Using apk: D:\phonegap

How to tell ANT-exec, the location of git executable

浪子不回头ぞ 提交于 2019-12-11 21:47:19
问题 I am trying to run git clone from ANT. But seems like ANT is not able to find git executable. I have tried following options. <exec executable="/opt/freeware/bin/git"> <exec executable="/usr/bin/git"> <exec executable="git"> 回答1: A more robust option is to use the jgit ANT task: <project name="demo" default="clone"> <target name="bootstrap"> <mkdir dir="${user.home}/.ant/lib"/> <get dest="${user.home}/.ant/lib/jgit.jar" src="http://search.maven.org/remotecontent?filepath=org/eclipse/jgit/org

ClassNotFound Exception when running jUnit test from build.xml

一个人想着一个人 提交于 2019-12-11 21:28:35
问题 I am currently trying to configure a build file to run junit test using ant xml file. However ClassNotFound Exception is being encountered. The following is part of the code that shall run the jUnit test: <target name="junitreport" > <junit printsummary="yes" haltonfailure="no"> <classpath refid="JUnit 4.libraryclasspath"/> <formatter type="plain"/> <formatter type="xml"/> <batchtest todir="${junit.output.dir}"> <fileset dir="src/tests"> <include name="CalculatorTest.java"/> </fileset> <

'Could not find the main class error' in a build file

ε祈祈猫儿з 提交于 2019-12-11 21:13:20
问题 I have craated a Java application with an Ant build file containing the jar-task task that generate a jar file from the application. <target name="jar-task" depends="compile"> <mkdir dir="${jar.dir}"/> <jar destfile="jar/guix.jar" basedir="${bin.dir}"> <fileset dir="${basedir}"> <include name="${basedir}/images/**/" /> </fileset> <manifest> <attribute name="Main-Class" value="IO.Deep.clk.GUI"/> <attribute name="Class-Path" value="${basedir}/SPLASH-2.0.0.jar ${basedir}/lib/dist/* ${basedir}

How do I fix this: Ant cannot “find file” when trying to build a Java web application on Jenkins?

匆匆过客 提交于 2019-12-11 20:34:54
问题 I am trying to set up an automatic build system with Jenkins CI for a NetBeans multitiered web application project. This NetBeans project contains an EJB-project (for the business layer of the web application) and a WAR-project (for the web layer of the application). I'm currently stuck on getting Ant to compile the project. I am using Windows 8 to develop in NetBeans IDE 8.0. Jenkins also runs on Windows 8. I'm currently looking for someone who understands how to build EJB-projects with

Apache Ant 1.8 macro invocation nesting

巧了我就是萌 提交于 2019-12-11 20:32:45
问题 This is almost certainly a duplicate, but just to reduce it to its most basic form: I want to write a pair of macros which will be used as: <defined-environment> <task-in-environment> <task-in-environment> ... </defined-environment> .. and ideally I'd like to be able mix the macro-defined contained tasks tasks with normal Ant tasks. Alas, I can't seem to make this work. Even if I make the <defined-environment>'s child wrapper explicit rather than implicit, I get complaints that <task-in

How to use profiles or targets to get the values from xml properties file using a template file

孤街浪徒 提交于 2019-12-11 20:27:26
问题 Using Maven or Ant wanted to get the values from an xml file and replace it by its variables using targets/profiles. properties.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <variables> <variable id="Title"> <book.01>abc</book.01> <book.02>def</book.01> <ebook.03>ghi</book.01> <ebook.04>klmn</book.01> </variable> <variable id="Author"> <book.01>john</book.01> <book.02>jack</book.01> <ebook.03>simi</book.01> <ebook.04>laura</book.01> </variable> </variables> Using Maven or Ant if