Tag: ant

通过Ant执行的Grunt命令的输出略有损坏

我有以下的Ant build.xml脚本,运行npm install然后grunt(这是一个概念validation,以检查我们是否可以通过Ant将grunt集成到我们的产品中,作为权宜之计,直到我们可以添加集成支持): <project name="GruntTest" default="buildGrunt"> <description>Run Grunt as a test</description> <!– ************************************************************** –> <!– buildDemo : define the sequence of programs to be executed –> <!– ************************************************************** –> <target name="buildGrunt" depends="runNpm"> <exec executable="cmd"> <arg value="/c grunt"/> </exec> </target> <target name="runNpm" depends="copySourceToTarget"> <exec executable="cmd"> <arg value="/c npm install"/> </exec> </target> <!– ************************************************************** –> <!– Copy […]

有没有办法通过maven / ant运行nodeunittesting

我为nodeunit中的node.js应用程序创build了一些unit testing。 我希望能够通过maven / ant来运行testing,因为我打算通过Jenkins运行它们。 有没有人有这样做的成功?

错误:执行命令'ant' – 安装并设置ANT_HOME后

经过我的环境variables摔跤得到正确的目录设置,我现在可以得到的版本: C:\Projects\TestProj>ant -version Apache Ant(TM) version 1.8.4 compiled on May 22 2012 ant似乎在工作: C:\Projects\TestProj>ant Buildfile: build.xml does not exist! Build failed 我尝试时仍然遇到错误: C:\Projects\TestProj>cordova -d platform add android cordova library for "android" already exists. No need to download. Continuing. Checking if platform "android" passes minimum requirements… Creating android project… Running command: C:\Users\Administrator\.cordova\lib\android\cordova\3.4.0\bin\c reate.bat –cli C:\Projects\TestProj\platforms\android com.company.testproj […]

我无法部署我的platypi演示程序

我一直在按照https://platypi.io/docs/getting-started关于如何开始使用platypi的说明。 一切都很顺利,直到我试图创build部署包( https://platypi.io/docs/getting-started/1251/Deploy-to-a-Device )。 当我运行节点命令“grunt build-cordova”时,出现以下错误:“错误:无法运行”ant -version“…”。 所以我尝试input命令“npm install node-ant”来安装ant。 但是,当我这样做,我得到一个错误,说我需要安装Visual Studio 2010构build工具。 我不想安装VS 2010来安装ant,因为我已经安装了VS 2013和2015。 我的问题是:如何在不安装VS 2010的情况下使用grunt命令“grunt build-cordova”来工作? 谢谢。

Grunt / NodeJs – 在Windows环境下调用ant命令作为产生进程

在一个Windows环境的咕噜生成过程中,我想调用两个ant命令作为产卵进程,以便能够跟踪输出。 它如下所示: grunt.registerTask('app-clean', 'Cleaning tasks', function() { var done = this.async(); if (context.device.platform === 'android' || context.device.platform === 'all') { spawnProcess('ant', ['clean'], { cwd: path.resolve(context.android) }, done); } }); grunt.registerTask('app-build', 'Building tasks', function() { var done = this.async(); if (context.device.platform === 'android' || context.device.platform === 'all') { spawnProcess('ant', ['release'], { cwd: path.resolve(context.android) }, done); } […]

如何从没有节点的Ant编译TypeScript文件?

我正在寻找一种方法来编译从Ant的TypeScript文件,但我没有节点,出于某些原因,不能在生产服务器上使用它。 我发现一些使用maven解决scheme,但没有与Ant。 我基本上需要运行Rhino而不是节点。 另外,我想知道Rhino的节点包是如何工作的,Rhino有自己的包pipe理器还是可以使用Node模块?

Cordova CLI:Ant构build不安装

我正在尝试安装Cordova CLI Interface 。 我需要安装Ant Build但每次我添加platorm cordova platfrom add android ,gradle生成得到安装。 谁知道为什么gradle已经安装? 在安装node.js之后,我正在执行这些步骤。 npm install -g cordova@3.6 cordova create <dir_name> com.blah <app_name> cordova plaform add android 环境variables和path都设置好了,但Ant还没有安装。 我正在按照这个链接进行安装,这在我使用Win 7的时候工作,但是现在我切换到了Win 8 64位。

cordova,q.js thorwing e,android工具都在path中

所以我已经看了类似的问题的其他答案,似乎每个人都说,要解决这个问题,我需要确保Android的工具,工具和ant在我的path。 我已经确定他们在我的路上,但我仍然遇到这个问题。 为了确保我所做的一切正确,我按照以下网页中的说明进行操作: http : //ionicframework.com/docs/guide/installation.html 我正在使用Mac OS X和下面,你可以看到错误信息。 BUILD FAILED /Users/408366/Desktop/adt/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /Users/408366/Desktop/adt/sdk/tools/ant/build.xml:698: null returned: 1 Total time: 1 second /Users/408366/Google Drive/Web Design/AHS App/Tests/todo/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: ant with args: debug,-f,/Users/408366/Google Drive/Web Design/AHS App/Tests/todo/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/408366/Google Drive/Web Design/AHS App/Tests/todo/platforms/android/cordova/build: Command failed with […]

错误“cordova平台添加android”

我一直在search整个networking的答案,但每个人似乎都指向环境variables,目前我有这些设置在我的环境 ANT_HOME C:\java\ant JAVA_HOME C:\Program Files\Java\jdk1.7.0_45 PATH values C:\Program Files\nodejs; %JAVA_HOME%\bin; %ANT_HOME%\bin; C:\Users\Julius Robles\Documents\Android\adt-bundle-windows-x86_64-20131030\tools; C:\Users\Julius Robles\Documents\Android\adt-bundle-windows-x86_64-20131030\platform-tools; C:\Users\Julius Robles\Documents\Android\adt-bundle-windows-x86_64-20131030\build-tools; 我假设这些都是我需要的,但仍然无法添加android平台。 我也尝试在ecplise中导入cordova框架,但一直显示不能运行android库的错误。 任何想法家伙? 我安装了Windwos 7(x64): Sencha – Sencha Cmd v4.0.1.45 Cordova – 3.4.0-0.1.3 Ant – Apache Ant(TM)1.9.3版本Node – v0.10.24 Phonegap – 3.4.0-0.19.7 来自我的CMD的错误日志在这里: C:\xampp\htdocs\MyIO>cordova platform add android Creating android project… C:\Users\Julius Robles\.cordova\lib\android\cordova\3.4.0\bin\node_modules\q\qj s:126 throw e; ^ Error: […]

Apache Cordova和PhoneGap有什么区别?

您好我需要开发一个简单的应用程序,它是在Android的kitkat版本中运行的混合。 由于PhoneGap 3.3可能,我一直在试图安装它。 但是我对安装过程感到非常困惑。 首先,我在我的Windows 7 32位系统中安装了nodejs。 然后我从手机网站上运行命令。 这是链接http://phonegap.com/install/我能够创build一个项目。 但是我面临一个错误,无法启动模拟器(我设置了环境variables)。 然后我经历了几个他们所说的运行以下命令的网站。 C:> npm install -g cordova 如果我运行任何进一步的命令,它要求我安装Apache ANT。 但是很多人都说我和phoneova都是一样的。 所以我有点困惑,因为我不得不要求上司在我的办公室PC上下载和安装软件。 请给我build议任何网站,让我的程序来处理这些。