[ https://issues.apache.org/jira/browse/AXIS2-2716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lahiru Sandakith resolved AXIS2-2716. ------------------------------------- Resolution: Fixed Fix Version/s: (was: 1.3) nightly This was fixed in the current svn now the axis2.sh look like this if [ "$arg" != -classpath ] && [ "$arg" != -cp ] && [ "$prearg" != -classpath ] && [ "$prearg" != -cp ] then USER_COMMANDS="$USER_COMMANDS ""$arg" fi if [ "$prearg"=-classpath ] || [ "$prearg"=-cp ] then AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH" fi prearg="$arg" ------------------------------------------------------------------------------------------------------------------------------------------------------------------ One other thing that I need to comment on here is about the, we have #!/bin/sh at the beginning of the script. As I know different environments get mapped the default shell as the default shell and some shells interpret syntax in different ways so, what we did here was something like generalizing the script to all scripts kind of a thing. Maybe we need to generalize this script but more. > Syntax errors in script axis2.sh in axis2-1.2 > --------------------------------------------- > > Key: AXIS2-2716 > URL: https://issues.apache.org/jira/browse/AXIS2-2716 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.2 > Environment: Linux. > Reporter: Prasan Chowdiah > Assignee: Lahiru Sandakith > Priority: Blocker > Fix For: nightly > > > Invoking the wsdl2java.sh script using ksh on linux produces the following > error: > # ksh ./wsdl2java.sh -uri ../samples/quickstart/build/StockQuoteService.wsdl > Using AXIS2_HOME: /P/axis/axis2-1.2 > Using JAVA_HOME: /usr/local/j2sdk/sun/1.5.0 > ./axis2.sh: line 38: [: !=: unary operator expected > Unrecognized option: -uri > Could not create the Java virtual machine. > if [ $arg != -classpath ] && [ $arg != -cp ] && [ $prearg != -classpath ] > && [ $prearg != -cp ] > Making the following changes to axis2.sh resolves the issue: > From > if [ $arg != -classpath ] && [ $arg != -cp ] && [ $prearg != -classpath ] > && [ $prearg != -cp ] > To > if [ "$arg" != -classpath ] && [ "$arg" != -cp ] && [ "$prearg" != > -classpath ] && [ "$prearg" != -cp ] > From > if [ $prearg=-classpath ] || [ $prearg=-cp ] > To > if [ "$prearg" = -classpath ] || [ "$prearg" = -cp ] > Thanks. > Prasan Chowdiah -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]