You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Manoj Khangaonkar (JIRA)" <ji...@apache.org> on 2006/12/23 00:45:31 UTC

[jira] Created: (AXIS2-1912) java2WSDL.bat needs to use existing CLASSPATH as well

java2WSDL.bat needs to use existing CLASSPATH as well
-----------------------------------------------------

                 Key: AXIS2-1912
                 URL: http://issues.apache.org/jira/browse/AXIS2-1912
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen, wsdl
    Affects Versions: 1.1, 1.2, 1.1.1
         Environment: Windows
            Reporter: Manoj Khangaonkar


Users may have an existing environment variable CLASSPATH - that points to the current directory and other directories as well as other jars.

java2WSDL.bat needs to append the existing classpath to AXIS2_CLASS_PATH as in

set AXIS2_CLASS_PATH=%CLASSPATH%;%AXIS2_HOME%

This saves user the trouble of adding multiple -cp options at the command line.

Attached is an updated java2WSDL.bat as a patch.

java2wsdl.sh already does the same



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1912) java2WSDL.bat needs to use existing CLASSPATH as well

Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1912?page=all ]

Manoj Khangaonkar updated AXIS2-1912:
-------------------------------------

    Attachment: java2wsdl.bat

Attaching as updated java2wsdl.bat as a patch

> java2WSDL.bat needs to use existing CLASSPATH as well
> -----------------------------------------------------
>
>                 Key: AXIS2-1912
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl, codegen
>    Affects Versions: 1.1, 1.2, 1.1.1
>         Environment: Windows
>            Reporter: Manoj Khangaonkar
>         Attachments: java2wsdl.bat
>
>
> Users may have an existing environment variable CLASSPATH - that points to the current directory and other directories as well as other jars.
> java2WSDL.bat needs to append the existing classpath to AXIS2_CLASS_PATH as in
> set AXIS2_CLASS_PATH=%CLASSPATH%;%AXIS2_HOME%
> This saves user the trouble of adding multiple -cp options at the command line.
> Attached is an updated java2WSDL.bat as a patch.
> java2wsdl.sh already does the same

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1912) java2WSDL.bat needs to use existing CLASSPATH as well

Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465630 ] 

Manoj Khangaonkar commented on AXIS2-1912:
------------------------------------------

Can one of the committer comment on this & perhaps commit it.

It is a trivial fix , but makes the use of java2WSDL less annoying.

The current script overrides any existing CLASSPATH. Any there is simply no reason to require every user to use to -cp . (dot) command line option every time.

An even better fix might be to do

set AXIS2_CLASS_PATH=.;%CLASSPATH%;%AXIS2_HOME%

Axis2-1714 seems to be a similar issue.

As already mentioned , on the unix side, this is already done in setenv.sh

thanks

> java2WSDL.bat needs to use existing CLASSPATH as well
> -----------------------------------------------------
>
>                 Key: AXIS2-1912
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen, wsdl
>    Affects Versions: 1.2, 1.1.1, 1.1
>         Environment: Windows
>            Reporter: Manoj Khangaonkar
>         Attachments: java2wsdl.bat
>
>
> Users may have an existing environment variable CLASSPATH - that points to the current directory and other directories as well as other jars.
> java2WSDL.bat needs to append the existing classpath to AXIS2_CLASS_PATH as in
> set AXIS2_CLASS_PATH=%CLASSPATH%;%AXIS2_HOME%
> This saves user the trouble of adding multiple -cp options at the command line.
> Attached is an updated java2WSDL.bat as a patch.
> java2wsdl.sh already does the same

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1912) java2WSDL.bat needs to use existing CLASSPATH as well

Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1912?page=comments#action_12460882 ] 
            
Manoj Khangaonkar commented on AXIS2-1912:
------------------------------------------

At the very least, it saves the user the trouble of typing the redundant -cp . (dot) option with every commandline.

It is reasonable to assume that the current directory is in the classpath based on the users environment

> java2WSDL.bat needs to use existing CLASSPATH as well
> -----------------------------------------------------
>
>                 Key: AXIS2-1912
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl, codegen
>    Affects Versions: 1.1, 1.2, 1.1.1
>         Environment: Windows
>            Reporter: Manoj Khangaonkar
>         Attachments: java2wsdl.bat
>
>
> Users may have an existing environment variable CLASSPATH - that points to the current directory and other directories as well as other jars.
> java2WSDL.bat needs to append the existing classpath to AXIS2_CLASS_PATH as in
> set AXIS2_CLASS_PATH=%CLASSPATH%;%AXIS2_HOME%
> This saves user the trouble of adding multiple -cp options at the command line.
> Attached is an updated java2WSDL.bat as a patch.
> java2wsdl.sh already does the same

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1912) java2WSDL.bat needs to use existing CLASSPATH as well

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-1912:
------------------------------------

    Assignee: Sanka Samaranayake

> java2WSDL.bat needs to use existing CLASSPATH as well
> -----------------------------------------------------
>
>                 Key: AXIS2-1912
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1912
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen, wsdl
>    Affects Versions: 1.2, 1.1.1, 1.1
>         Environment: Windows
>            Reporter: Manoj Khangaonkar
>         Assigned To: Sanka Samaranayake
>         Attachments: java2wsdl.bat
>
>
> Users may have an existing environment variable CLASSPATH - that points to the current directory and other directories as well as other jars.
> java2WSDL.bat needs to append the existing classpath to AXIS2_CLASS_PATH as in
> set AXIS2_CLASS_PATH=%CLASSPATH%;%AXIS2_HOME%
> This saves user the trouble of adding multiple -cp options at the command line.
> Attached is an updated java2WSDL.bat as a patch.
> java2wsdl.sh already does the same

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1912) java2WSDL.bat needs to use existing CLASSPATH as well

Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanka Samaranayake resolved AXIS2-1912.
---------------------------------------

    Resolution: Fixed

Applied in committed revision 512278.
Thanks Manoj !

--Sanka


> java2WSDL.bat needs to use existing CLASSPATH as well
> -----------------------------------------------------
>
>                 Key: AXIS2-1912
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1912
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen, wsdl
>    Affects Versions: 1.2, 1.1.1, 1.1
>         Environment: Windows
>            Reporter: Manoj Khangaonkar
>         Assigned To: Sanka Samaranayake
>         Attachments: java2wsdl.bat
>
>
> Users may have an existing environment variable CLASSPATH - that points to the current directory and other directories as well as other jars.
> java2WSDL.bat needs to append the existing classpath to AXIS2_CLASS_PATH as in
> set AXIS2_CLASS_PATH=%CLASSPATH%;%AXIS2_HOME%
> This saves user the trouble of adding multiple -cp options at the command line.
> Attached is an updated java2WSDL.bat as a patch.
> java2wsdl.sh already does the same

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org