Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    buildmasterant
    14 Posts 1 Posters 16 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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.
      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          How do I change the Default configuration path for Java Home and Ant home?

          Or overriding both is the only way?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              That worked!! Thanks.

              I was able to build with 1 target.

              Now how do I add 2 targets for the build process?

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  I added both targets(clean-with-deps, build) in the Build Target -
                  clean-with-deps build

                  The 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.

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

                      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?

                      1 Reply Last reply Reply Quote 0
                      • ? This user is from outside of this forum
                        Guest
                        last edited by

                        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.

                        1 Reply Last reply Reply Quote 0
                        • ? This user is from outside of this forum
                          Guest
                          last edited by

                          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?

                          1 Reply Last reply Reply Quote 0
                          • ? This user is from outside of this forum
                            Guest
                            last edited by

                            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.

                            1 Reply Last reply Reply Quote 0
                            • ? This user is from outside of this forum
                              Guest
                              last edited by

                              Thanks a lot.

                              After updating the Java Extension, I was able to use Ant build action with 2 targets.

                              1 Reply Last reply Reply Quote 0
                              • ? This user is from outside of this forum
                                Guest
                                last edited by

                                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!

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1 / 1
                                • First post
                                  Last post
                                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation