[Fedora-directory-commits] dsmlgw/scripts dsml2ldif.in, 1.2, 1.3 dsmlgw-search.in, 1.3, 1.4 ldif2dsml.in, 1.2, 1.3
Richard Allen Megginson (rmeggins)
fedora-directory-commits at redhat.com
Wed Jun 11 21:07:00 UTC 2008
- Previous message (by thread): [Fedora-directory-commits] ldapserver Makefile.am, 1.68, 1.69 Makefile.in, 1.88, 1.89 aclocal.m4, 1.67, 1.68 config.guess, 1.49, 1.50 config.h.in, 1.16, 1.17 config.sub, 1.49, 1.50 configure, 1.84, 1.85 depcomp, 1.50, 1.51 install-sh, 1.50, 1.51 ltmain.sh, 1.25, 1.26 missing, 1.50, 1.51
- Next message (by thread): [Fedora-directory-commits] dsgw htmlout.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rmeggins
Update of /cvs/dirsec/dsmlgw/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20508/dsmlgw/scripts
Modified Files:
dsml2ldif.in dsmlgw-search.in ldif2dsml.in
Log Message:
Resolves: bug 449178
Bug Description: Hard-coded java path limitting the installation flexibility
Reviewed by: nhosoi (Thanks!)
Fix Description: Allow the user to specify JAVA_HOME to override the default javahome location.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no
Index: dsml2ldif.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/scripts/dsml2ldif.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dsml2ldif.in 30 Apr 2008 20:49:22 -0000 1.2
+++ dsml2ldif.in 11 Jun 2008 21:06:58 -0000 1.3
@@ -25,7 +25,7 @@
# END COPYRIGHT BLOCK
#
-CP=@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/dsmlgw.jar:@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/ldapjdk.jar
+CP="@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/dsmlgw.jar:@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/ldapjdk.jar"
# it seems that most java 1.5 and later JREs already have a built-in sax implementation
# if you need to specify another one, just specify the SAXJARS env var
# SAXJARS=/path/to/xml-parser.jar dsml2ldif file.dsml
@@ -33,4 +33,8 @@
CP=${CP}:$SAXJARS
fi
- at runtime_javahome@/bin/java -cp "$CP" com.netscape.xmltools.DSML2LDIF "$@"
+DEFAULT_JAVAHOME="@runtime_javahome@"
+
+JAVA_HOME="${JAVA_HOME:-$DEFAULT_JAVAHOME}"
+
+"$JAVA_HOME/bin/java" -cp "$CP" com.netscape.xmltools.DSML2LDIF "$@"
Index: dsmlgw-search.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/scripts/dsmlgw-search.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- dsmlgw-search.in 30 Apr 2008 20:49:22 -0000 1.3
+++ dsmlgw-search.in 11 Jun 2008 21:06:58 -0000 1.4
@@ -99,6 +99,10 @@
fi
done
- at runtime_javahome@/bin/java -cp "$AXISCP" com.netscape.dsml.test.dsmlSearch http://$hostname:$port/axis/services/dsmlgw $tmpdsml
+DEFAULT_JAVAHOME="@runtime_javahome@"
+
+JAVA_HOME="${JAVA_HOME:-$DEFAULT_JAVAHOME}"
+
+"$JAVA_HOME/bin/java" -cp "$AXISCP" com.netscape.dsml.test.dsmlSearch http://$hostname:$port/axis/services/dsmlgw $tmpdsml
rm -f $tmpdsml
Index: ldif2dsml.in
===================================================================
RCS file: /cvs/dirsec/dsmlgw/scripts/ldif2dsml.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ldif2dsml.in 30 Apr 2008 20:49:22 -0000 1.2
+++ ldif2dsml.in 11 Jun 2008 21:06:58 -0000 1.3
@@ -25,7 +25,7 @@
# END COPYRIGHT BLOCK
#
-CP=@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/dsmlgw.jar:@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/ldapjdk.jar
+CP="@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/dsmlgw.jar:@dsmlgwdatadir@/webapps/axis/WEB-INF/lib/ldapjdk.jar"
# it seems that most java 1.5 and later JREs already have a built-in sax implementation
# if you need to specify another one, just specify the SAXJARS env var
# SAXJARS=/path/to/xml-parser.jar dsml2ldif file.dsml
@@ -33,4 +33,8 @@
CP=${CP}:$SAXJARS
fi
- at runtime_javahome@/bin/java -cp "$CP" com.netscape.xmltools.LDIF2DSML "$@"
+DEFAULT_JAVAHOME="@runtime_javahome@"
+
+JAVA_HOME="${JAVA_HOME:-$DEFAULT_JAVAHOME}"
+
+"$JAVA_HOME/bin/java" -cp "$CP" com.netscape.xmltools.LDIF2DSML "$@"
- Previous message (by thread): [Fedora-directory-commits] ldapserver Makefile.am, 1.68, 1.69 Makefile.in, 1.88, 1.89 aclocal.m4, 1.67, 1.68 config.guess, 1.49, 1.50 config.h.in, 1.16, 1.17 config.sub, 1.49, 1.50 configure, 1.84, 1.85 depcomp, 1.50, 1.51 install-sh, 1.50, 1.51 ltmain.sh, 1.25, 1.26 missing, 1.50, 1.51
- Next message (by thread): [Fedora-directory-commits] dsgw htmlout.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list