Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Exception while building
-
BuildMaster version 3.5.10 (Build 6) - self-hosted
I am running BuildMaster interactively.I created an Action using Build Ant Project
- Selected the source directory
- Build File Path: gave the entire path to the build file - entirepath\deployment.xml - deployment.xml is the build file
- Build Target - "build"
When a new build is created, the following error is shown:
Build 12 for ACESIII 0.0 (6/19/2013 11:12:44 AM)
Action Group 2: Build Website
Action 1: Build Y:\Projects\ACESIII\deployment\deployment.xml Target:build
Preparing remote servers for execution...
Preparing NEETI-ORACLE for execution...
Preparation complete.
Initializing action...
RemoteAction Initialization Complete:
Temp Directory: Y:\software\BuildMaster_SVCTMP_A3_S4\TMP
Source Directory: Y:\Projects\ACESIII
Target Directory: Y:\software\BuildMaster_SVCTMP_A3_S4\WRK
Server: NEETI-ORACLE (Id: 1)
Initialization complete. Executing...
Arguments: -buildfile "Y:\Projects\ACESIII\deployment\deployment.xml" "build"
Working Directory: Y:\Projects\ACESIII
Executing Y:\software\apache-ant-1.9.1\bin\ant.exe
An unhandled exception occurred while executing this action: System.ComponentModel.Win32Exception: The system cannot find the file specified at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Inedo.BuildMaster.Extensibility.Agents.Local.LocalAgent.StandardProcess.Inedo.BuildMaster.Extensibility.Agents.IProcess.Start() at Inedo.BuildMaster.Extensibility.Actions.CommandLineActionBase.ExecuteCommandLine(IRemoteProcessExecuter agent, String fileName, String arguments, String workingDirectory) at Inedo.BuildMasterExtensions.Java.AntAction.Execute() at Inedo.BuildMaster.Extensibility.Actions.ActionBase.Execute(IActionCancellationToken cancellationToken, ExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings)I tried with
- Build Path file - entirepath - without adding "deployment.xml"
But the same error.
-
The problem is that it cannot find Y:\software\apache-ant-1.9.1\bin\ant.exe
Ant is actually a .bat file, not an .exe file on Windows - just change the path from Y:\software\apache-ant-1.9.1\bin\ant.exe to Y:\software\apache-ant-1.9.1\bin\ant.bat and it should work.
-
How do I change the Default configuration path for Java Home and Ant home?
Or overriding both is the only way?
-
To change the paths, go to Admin > Extensibility > Add/Configure BuildMaster Extensions > Configure or Delete Extensions and click on the edit button next to the Java extension - you would have to set both if you are overriding the default values. If you are only using the Ant action, you don't need to worry about the JDK path since it does not use it - that is only used by the Javac action.
-
That worked!! Thanks.
I was able to build with 1 target.
Now how do I add 2 targets for the build process?
-
You should just be able to separate them with spaces, e.g. in the Build Targets field enter "target1 target2".
If you want to invoke ant again, just add another Ant action after the first one.
-
I added both targets(clean-with-deps, build) in the Build Target -
clean-with-deps buildThe following error was seen :
Buildfile: Y:\Projects\ACESIII\deployment\deployment.xml
BUILD FAILED
Target "clean-with-deps build" does not exist in the project "aces3-supplier-site-master".
Total time: 0 seconds
Execution complete. Finalizing...
Finalization complete.
-
This is in addition to my above reply:
Build 16 for ACESIII 0.0 (6/19/2013 7:33:31 PM)
Action Group 2: Build Website
Action 1: Build Y:\Projects\ACESIII\deployment\deployment.xml Target:clean-with-deps build
Preparing remote servers for execution...
Preparing NEETI-ORACLE for execution...
Preparation complete.
Initializing action...
RemoteAction Initialization Complete:
Temp Directory: Y:\software\BuildMaster_SVCTMP_A3_S4\TMP
Source Directory: Y:\Projects\ACESIII
Target Directory: Y:\software\BuildMaster_SVCTMP_A3_S4\WRK
Server: NEETI-ORACLE (Id: 1)
Initialization complete. Executing...
Arguments: -buildfile "Y:\Projects\ACESIII\deployment\deployment.xml" "clean-with-deps build"
Working Directory: Y:\Projects\ACESIII
Executing Y:\software\apache-ant-1.9.1\bin\ant.bat
Buildfile: Y:\Projects\ACESIII\deployment\deployment.xml
BUILD FAILED
Target "clean-with-deps build" does not exist in the project "aces3-supplier-site-master".
Total time: 0 seconds
Execution complete. Finalizing...
Finalization complete.There is no folder called - aces3-supplier-site-master in Y:\Projects\ACESIII in my system.
Also, when I build the project on command window using -> ant -f deployment.xml clean-with-deps build
It is successful.
-
In addition to above:
The aces3-supplier-site-master is the project folder name in deployment.xml -
"<?xml version="1.0" encoding="UTF-8"?>
<project name="aces3-supplier-site-master" default="deploy" basedir=".">
"I have the 2 targets - clean-with-deps, build in the file.
Is there a way to run both targets, instead of running 2 different ant actions for each target respectively?
-
Can you email a screenshot of your Ant action configuration to support at inedo?
As a workaround, you can use the Execute Command Line action using ant.bat as the executable and the exact arguments you've specified in your command line to get it working quickly.
-
I have emailed the screenshot of ant build action to support@inedo.com
Execute Command Line worked.
How do I make the Ant build action work?
-
Thank you for the email, we have fixed the Ant action in the Java extension to allow for multiple build targets.
If you update to the latest Java extension from the Extension Gallery, you should be able to enter multiple targets in the Build Target property.
-
Thanks a lot.
After updating the Java Extension, I was able to use Ant build action with 2 targets.
-
Neat graphic! Apple Passbook epeixlmfies wallet without nfc; Samsung Galaxy Note has nfc to beam files between phones, so it would represent the left. Google is working on the intersection of nfc and wallet, so it is nice Microsoft represents another entry into the nfc wallet category!