Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 91547 Details for
Bug 202777
Hard coded paths in shell scripts SetConfig.sh
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch to add new error message when config.jar can't be found
202777 patch.txt (text/plain), 2.34 KB, created by
Bing Xu
on 2008-03-04 13:35:26 EST
(
hide
)
Description:
Patch to add new error message when config.jar can't be found
Filename:
MIME Type:
Creator:
Bing Xu
Created:
2008-03-04 13:35:26 EST
Size:
2.34 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.tptp.platform.agentcontroller >Index: src-native/collection/packaging/bin/SetConfig.sh >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.tptp.platform.agentcontroller/src-native/collection/packaging/bin/SetConfig.sh,v >retrieving revision 1.9 >diff -u -r1.9 SetConfig.sh >--- src-native/collection/packaging/bin/SetConfig.sh 5 Dec 2006 16:15:40 -0000 1.9 >+++ src-native/collection/packaging/bin/SetConfig.sh 4 Mar 2008 18:33:07 -0000 >@@ -10,6 +10,14 @@ > exit 0 > fi > >+ >+if [ ! -s ../lib/config.jar ]; then >+ echo 'ERROR: Cannot find ..\lib\config.jar.' >+ echo 'RESOLUTION: Make sure you are running this script in <AC>/bin directory.' >+ exit 0 >+fi >+ >+ > # > # Check if the JRE contains a suitable JAXP > # >Index: src-native/collection/packaging_md/win_ia32/bin/SetConfig.bat >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.tptp.platform.agentcontroller/src-native/collection/packaging_md/win_ia32/bin/SetConfig.bat,v >retrieving revision 1.5 >diff -u -r1.5 SetConfig.bat >--- src-native/collection/packaging_md/win_ia32/bin/SetConfig.bat 29 Feb 2008 14:23:32 -0000 1.5 >+++ src-native/collection/packaging_md/win_ia32/bin/SetConfig.bat 4 Mar 2008 18:33:11 -0000 >@@ -16,12 +16,18 @@ > @java -version > nul 2>&1 > @IF ERRORLEVEL 1 GOTO ERROR_JAVA_NOT_FOUND > >+ >+ > @REM >-@REM Check if the JRE contains a suitable JAXP >+@REM Check if the script is run in <AC>/bin directory. > @REM >+@if not exist ..\lib\config.jar GOTO ERROR_CONFIG_NOT_FOUND >+ >+@REM Check if the JRE contains a suitable JAXP > @java -classpath ..\lib\config.jar org.eclipse.tptp.platform.agentcontroller.config.TestJAXP > nul 2>&1 > @IF ERRORLEVEL 1 GOTO ERROR_JAXP_NOT_SUPPORTED > >+ > @REM > @REM Generate the configuration files > @REM >@@ -33,6 +39,11 @@ > @echo RESOLUTION: Make sure the PATH environment variable contains the location of a java executable > @goto END > >+:ERROR_CONFIG_NOT_FOUND >+@echo ERROR: Cannot find ..\lib\config.jar. >+@echo RESOLUTION: Make sure you are running this script in <AC>/bin directory. >+@goto END >+ > :ERROR_JAXP_NOT_SUPPORTED > @echo ERROR: The Java Runtime in use does not contain a suitable JAXP feature > @echo RESOLUTION: Use a JRE which supports the JAXP feature
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202777
: 91547