https://bz.apache.org/bugzilla/show_bug.cgi?id=61649

            Bug ID: 61649
           Summary: The same scripted invocation of Ant works on z/OS
                    using 1.9.7, but fails using 1.9.9
           Product: Ant
           Version: 1.9.9
          Hardware: PC
                OS: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Hi,

We moved from ANT 1.9.7 to ANT 1.9.9 on Z/OS.
ANT is installed as expected.

Problem:
When we try to install our application on Z/OS with Java 8 and webSphere
8.5.5.11, ANT 1.9.9, the installation fails because Ant doesnt recognize the
wasadmin.extra.args.
The same configuration with Ant 1.9.7 is working fine.

The command that we use normally is:

build installapp -Dserver.name=$WAS_SERVER -Dapplication.name=App
-Dear.file=/home/xxx/yyy/ear/WAS/App.ear -Dwsadmin.extra.args=\"-javaoption
-Xmx1024m -appendtrace true\"

the different result are the following 

Failure with Ant 1.9.9:

Unknown argument: -Xmx1024m
ant [options] [target [target2 [target3] ...]]
Options:
  -help, -h              print this message and exit
  -projecthelp, -p       print project help information and exit
...
}}}

Works with Ant 1.9.7:

Buildfile: /home/xxx/yyy/build.xml

runtime.init:
     [echo] Using properties file
'/home/xxx/yyy/project/properties/AppServer.properties'.
...
}}}

The target involved is 

<target name="was.wsadmin">

    <!-- On windows, call 'wsadmin.bat' -->
    <condition property="script.suffix" value=".bat" >
      <os family="windows" />
    </condition>
    <!-- Unix platforms use wsadmin.sh -->
    <property name="script.suffix" value=".sh"/>
    <property name="wsadmin.extra.args" value=""/>
    <exec executable="cmd.exe"
          failonerror="${error.failure}" osfamily="windows">
      <arg line="/c call
${was.home}/profiles/${profile.name}/bin/wsadmin${script.suffix} -user
${username} -password ${password} -profileName ${profile.name} -lang jython
${wsadmin.extra.args} -c &quot;${line}&quot; "/>
    </exec>
    <exec
executable="${was.home}/profiles/${profile.name}/bin/wsadmin${script.suffix}"
          failonerror="${error.failure}" osfamily="unix">
      <arg line="-user ${username} -password ${password} -profileName
${profile.name} -lang jython ${wsadmin.extra.args} -c &quot;${line}&quot; "/>
    </exec>
  </target>


We are using it on z/OS to increase the wsadmin jython JVM heap, 

We are wondering:

Has something changed in this area in the ANT 1.9.9  implementation which is
different to that of 1.9.7 which would cause this different behavior?


Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to