• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.0
    • 0.4.3
    • Installation/Setup
    • None

      
      

      bash-3.00$ ./build.sh
      Buildfile: build.xml

      BUILD FAILED
      /opt/atlassian/runtimes/atlassian-crowd-0.4.3/build.xml:3: taskdef class com.oopsconsultancy.xmltask.ant.XmlTask cannot be found

      Total time: 0 seconds
      bash-3.00${code}

            [CWD-150] Build fails

            shihab added a comment -

            We've added further configurations to our build.sh script so that it attempts to force the system to run the Ant version shipped with Crowd.

            shihab added a comment - We've added further configurations to our build.sh script so that it attempts to force the system to run the Ant version shipped with Crowd.

            shihab added a comment -

            Could you please issue the following commands to check if you have Ant on your system:

            which ant
            ant -version
            

            This will let us know if you're using your own copy of Ant.

            We have been able to replicate the problem calling a system installed version of Ant directly; however, using the build.sh file, we haven't been able to replicate it.

            shihab added a comment - Could you please issue the following commands to check if you have Ant on your system: which ant ant -version This will let us know if you're using your own copy of Ant. We have been able to replicate the problem calling a system installed version of Ant directly; however, using the build.sh file, we haven't been able to replicate it.

            shihab added a comment -

            I'm trying to replicate the error using a VMWare image of Ubuntu.

            Could you specify what flavour of UNIX/Linux you're using as well as the Java version.

            It looks like a path/classpath issue. If you could attach some information about your PATH, ANT_HOME (if installed) and Ant debug info, that would be helpful.

            Environment variables:

            echo $PATH
            echo $ANT_HOME
            

            Ant debug information:

            ./build.sh -d
            

            shihab added a comment - I'm trying to replicate the error using a VMWare image of Ubuntu. Could you specify what flavour of UNIX/Linux you're using as well as the Java version. It looks like a path/classpath issue. If you could attach some information about your PATH, ANT_HOME (if installed) and Ant debug info, that would be helpful. Environment variables: echo $PATH echo $ANT_HOME Ant debug information: ./build.sh -d

            shihab added a comment -

            After reviewing this internally we have discovered the problem exist if you already have ANT in your path.

            We will adjust our build scripts to reflect storing the previous path, set our necessary path, and restore your path at the end of the script exec.

            shihab added a comment - After reviewing this internally we have discovered the problem exist if you already have ANT in your path. We will adjust our build scripts to reflect storing the previous path, set our necessary path, and restore your path at the end of the script exec.

            More specifically,

            Is ant installed on this machine already and is on the path?

            Our build file looks for ANT_HOME being set and temporarily replaces it with it's own ANT_HOME and the reverts it back at the end. However if Ant is on your path I can see this causing the problem.

            Justin.

            Justin Koke added a comment - More specifically, Is ant installed on this machine already and is on the path? Our build file looks for ANT_HOME being set and temporarily replaces it with it's own ANT_HOME and the reverts it back at the end. However if Ant is on your path I can see this causing the problem. Justin.

            Interesting. We have had a few validations on this being fixed. Do you think you could give me some specifics on your environment?

            Justen Stepka [Atlassian] added a comment - Interesting. We have had a few validations on this being fixed. Do you think you could give me some specifics on your environment?

            BrianY added a comment -

            What was the resolution? I am seeing the same error with Crowd 0.4.5.

            BrianY added a comment - What was the resolution? I am seeing the same error with Crowd 0.4.5.

            Validated this work with the latest bulid on a unix, windows and osx box.

            Justen Stepka [Atlassian] added a comment - Validated this work with the latest bulid on a unix, windows and osx box.

            I bet that is frustrating... can you tell me a bit more about your environment so I might be able to test it here?

            Do you have the same problem is you run the 'build.bat' on your windows desktop?

            Justen Stepka [Atlassian] added a comment - I bet that is frustrating... can you tell me a bit more about your environment so I might be able to test it here? Do you have the same problem is you run the 'build.bat' on your windows desktop?

              Unassigned Unassigned
              8d3c164c04d6 Paul Rene Jørgensen
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: