Cleanup. Remove references to Java 5 since we no longer support it.
Cleanup messages, removing unnecessary casts (due to bugs in early versions of Java 5), removing dead code.
The minimal version has been set to Java 1.6.0_10.
Also cleanup the Java Stubs for MacOS, removed the StatusPanel (replaced by ControlPanel since 1.2), and update Info.plist to require 1.6 or higher, show 2.3 as version.
4 files deleted
27 files modified
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2010 Sun Microsystems, Inc. |
| | | ! --> |
| | | |
| | | <project name="Directory Server Extension" basedir="." default="package"> |
| | |
| | | <!-- Compile the Directory Server extension source files. --> |
| | | <target name="compile" depends="init,compileadmin,generate-messages" description="Compile the Directory Server extension source files."> |
| | | <mkdir dir="${classes.dir}" /> |
| | | <javac srcdir="${src.dir}:${src.gen.dir}" destdir="${classes.dir}" optimize="true" excludes="**/package-info.java" debug="on" debuglevel="lines,source" source="1.5" target="1.5" deprecation="true" fork="true" memoryInitialSize="${MEM}" memoryMaximumSize="${MEM}"> |
| | | <javac srcdir="${src.dir}:${src.gen.dir}" destdir="${classes.dir}" optimize="true" excludes="**/package-info.java" debug="on" debuglevel="lines,source" source="1.6" target="1.6" deprecation="true" fork="true" memoryInitialSize="${MEM}" memoryMaximumSize="${MEM}"> |
| | | <compilerarg value="-Xlint:all" /> |
| | | <classpath> |
| | | <fileset dir="${lib.dir}"> |
| | |
| | | <!-- Generate JavaDoc documentation from the source files. --> |
| | | <target name="javadoc" depends="init,compile" description="Generate JavaDoc documentation."> |
| | | <mkdir dir="${javadoc.dir}" /> |
| | | <javadoc destdir="${javadoc.dir}" source="1.5" additionalparam="-quiet" linksource="yes" windowtitle="${pkg.description} API Documentation" maxmemory="${MEM}"> |
| | | <javadoc destdir="${javadoc.dir}" source="1.6" additionalparam="-quiet" linksource="yes" windowtitle="${pkg.description} API Documentation" maxmemory="${MEM}"> |
| | | <classpath> |
| | | <fileset dir="${lib.dir}"> |
| | | <include name="*.jar" /> |
| | |
| | | |
| | | :noJavaFound |
| | | echo ERROR: Could not find a valid Java binary to be used. |
| | | echo You must specify the path to a valid Java 5.0 or higher version. |
| | | echo You must specify the path to a valid Java 6.0 or higher version. |
| | | echo The procedure to follow is: |
| | | echo 1. Delete the file %INSTANCE_ROOT%\lib\set-java-home.bat if it exists. |
| | | echo 2. Set the environment variable OPENDS_JAVA_HOME to the root of a valid |
| | | echo Java 5.0 installation. |
| | | echo Java 6.0 installation. |
| | | echo If you want to have specific Java settings for each command line you must |
| | | echo follow the steps 3 and 4. |
| | | echo 3. Edit the properties file specifying the Java binary and the Java arguments |
| | |
| | | echo ERROR: The detected Java version could not be used. The detected |
| | | echo Java binary is: |
| | | echo %OPENDS_JAVA_BIN% |
| | | echo You must specify the path to a valid Java 5.0 or higher version. |
| | | echo You must specify the path to a valid Java 6.0 or higher version. |
| | | echo The procedure to follow is: |
| | | echo 1. Delete the file %INSTANCE_ROOT%\lib\set-java-home.bat if it exists. |
| | | echo 2. Set the environment variable OPENDS_JAVA_HOME to the root of a valid |
| | | echo Java 5.0 installation. |
| | | echo Java 6.0 installation. |
| | | echo If you want to have specific Java settings for each command line you must |
| | | echo follow the steps 3 and 4. |
| | | echo 3. Edit the properties file specifying the Java binary and the Java arguments |
| | |
| | | exit /B 1 |
| | | |
| | | :notSupportedJavaHome |
| | | rem We get here when the java version is 5 (or up) but not supported. We run |
| | | rem We get here when the java version is 6 (or up) but not supported. We run |
| | | rem InstallDS again to see a localized message. |
| | | "%OPENDS_JAVA_BIN%" %OPENDS_JAVA_ARGS% org.opends.server.tools.InstallDS -t |
| | | pause |
| | |
| | | echo arguments %OPENDS_JAVA_ARGS%. |
| | | echo The detected Java binary is: |
| | | echo %OPENDS_JAVA_BIN% |
| | | echo You must specify the path to a valid Java 5.0 or higher version. |
| | | echo You must specify the path to a valid Java 6.0 or higher version. |
| | | echo The procedure to follow is: |
| | | echo 1. Delete the file %INSTANCE_ROOT%\lib\set-java-home.bat if it exists. |
| | | echo 2. Set the environment variable OPENDS_JAVA_HOME to the root of a valid |
| | | echo Java 5.0 installation. |
| | | echo Java 6.0 installation. |
| | | echo If you want to have specific Java settings for each command line you must |
| | | echo follow the steps 3 and 4. |
| | | echo 3. Edit the properties file specifying the Java binary and the Java arguments |
| | |
| | | # Display an error message |
| | | # |
| | | display_java_not_found_error() { |
| | | echo "Please set OPENDS_JAVA_HOME to the root of a Java 5 (or later) installation" |
| | | echo "Please set OPENDS_JAVA_HOME to the root of a Java 6 (or later) installation" |
| | | echo "or edit the java.properties file and then run the dsjavaproperties script to" |
| | | echo "specify the Java version to be used" |
| | | } |
| | |
| | | RESULT_CODE=${?} |
| | | if test ${RESULT_CODE} -eq 13 |
| | | then |
| | | # This is a particular error code that means that the Java version is 5 |
| | | # This is a particular error code that means that the Java version is 6 |
| | | # but not supported. Let InstallDS to display the localized error message |
| | | "${OPENDS_JAVA_BIN}" org.opends.server.tools.InstallDS -t |
| | | exit 1 |
| | |
| | | echo "ERROR: The detected Java version could not be used. The detected" |
| | | echo "Java binary is:" |
| | | echo "${OPENDS_JAVA_BIN}" |
| | | echo "You must specify the path to a valid Java 5.0 or higher version." |
| | | echo "You must specify the path to a valid Java 6.0 or higher version." |
| | | echo "The procedure to follow is:" |
| | | echo "1. Delete the file ${INSTANCE_ROOT}/lib/set-java-home" if it exists. |
| | | echo "2. Set the environment variable OPENDS_JAVA_HOME to the root of a valid " |
| | | echo "Java 5.0 installation." |
| | | echo "Java 6.0 installation." |
| | | echo "If you want to have specific Java settings for each command line you must" |
| | | echo "follow the steps 3 and 4." |
| | | echo "3. Edit the properties file specifying the Java binary and the Java arguments" |
| | |
| | | RESULT_CODE=${?} |
| | | if test ${RESULT_CODE} -eq 13 |
| | | then |
| | | # This is a particular error code that means that the Java version is 5 |
| | | # This is a particular error code that means that the Java version is 6 |
| | | # but not supported. Let InstallDS to display the localized error message |
| | | "${OPENDS_JAVA_BIN}" org.opends.server.tools.InstallDS -t |
| | | exit 1 |
| | |
| | | echo "arguments ${OPENDS_JAVA_ARGS}." |
| | | echo "The detected Java binary is:" |
| | | echo "${OPENDS_JAVA_BIN}" |
| | | echo "You must specify the path to a valid Java 5.0 or higher version." |
| | | echo "You must specify the path to a valid Java 6.0 or higher version." |
| | | echo "The procedure to follow is:" |
| | | echo "1. Delete the file ${INSTANCE_ROOT}/lib/set-java-home" if it exists. |
| | | echo "2. Set the environment variable OPENDS_JAVA_HOME to the root of a valid " |
| | | echo "Java 5.0 installation." |
| | | echo "Java 6.0 installation." |
| | | echo "If you want to have specific Java settings for each command line you must" |
| | | echo "follow the steps 3 and 4." |
| | | echo "3. Edit the properties file specifying the Java binary and the Java arguments" |
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2008 Sun Microsystems, Inc. |
| | | # Copyright 2008-2010 Sun Microsystems, Inc. |
| | | # |
| | | # |
| | | |
| | |
| | | # |
| | | # Specify to use the java home for all the command-lines that have not |
| | | # an associated property defined: |
| | | # default.java-home=/usr/jdk1.5 |
| | | # default.java-home=/usr/jdk1.6 |
| | | # |
| | | # Specify to use the -client argument for all the command-lines that have not |
| | | # an associated property defined: |
| | |
| | | </ul>
|
| | |
|
| | | <h3>Before You Install</h3>
|
| | | A Java SE 5.0 (version 1.5.0_08) or higher runtime environment must be installed.
|
| | | A Java SE 6.0 (version 1.6.0_10) or higher runtime environment must be installed. |
| | | It is recommended that your system have at least 100MB of disk space and
|
| | | 256MB of free memory to run OpenDS for evaluation purposes. Note that
|
| | | you can configure OpenDS in such a way that it requires substantially
|
| | |
| | | |
| | | Before You Install |
| | | ------------------ |
| | | A Java SE 5.0 (version 1.5.0_08) or higher runtime environment must be installed. It is |
| | | A Java SE 6.0 (version 1.6.0_10) or higher runtime environment must be installed. It is |
| | | recommended that your system have at least 100MB of disk space and 256MB of free memory to run |
| | | OpenDS for evaluation purposes. Note that you can configure OpenDS in such a way that it requires |
| | | substantially less, or more, disk space. For more information, see the OpenDS System Requirements |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| | | <plist version="1.0"> |
| | | <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> |
| | | <plist version="0.9"> |
| | | <dict> |
| | | <key>CFBundleAllowMixedLocalizations</key> |
| | | <string>true</string> |
| | | <key>CFBundleDevelopmentRegion</key> |
| | | <string>English</string> |
| | | <key>CFBundleExecutable</key> |
| | | <string>JavaApplicationStub</string> |
| | | <key>CFBundleGetInfoString</key> |
| | | <string>OpenDS Control Panel</string> |
| | | <key>CFBundleIconFile</key> |
| | | <string>OpenDS.icns</string> |
| | | <key>CFBundleInfoDictionaryVersion</key> |
| | | <string>6.0</string> |
| | | <key>CFBundleName</key> |
| | | <string>OpenDS Control Panel</string> |
| | | <key>CFBundleIdentifier</key> |
| | | <string>org.opends.guitools.controlpanel.ControlPanelLauncher</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>2.3.0</string> |
| | | <key>CFBundleAllowMixedLocalizations</key> |
| | | <string>true</string> |
| | | <key>CFBundleExecutable</key> |
| | | <string>JavaApplicationStub</string> |
| | | <key>CFBundleDevelopmentRegion</key> |
| | | <string>English</string> |
| | | <key>CFBundlePackageType</key> |
| | | <string>APPL</string> |
| | | <key>CFBundleSignature</key> |
| | | <string>????</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>1.0</string> |
| | | <key>CFBundleInfoDictionaryVersion</key> |
| | | <string>6.0</string> |
| | | <key>CFBundleIconFile</key> |
| | | <string>OpenDS.icns</string> |
| | | <key>Java</key> |
| | | <dict> |
| | | <key>ClassPath</key> |
| | | <array> |
| | | <string>$JAVAROOT/../../../../../lib/quicksetup.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/activation.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/aspectjrt.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/mail.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/je.jar</string> |
| | | </array> |
| | | <key>JVMVersion</key> |
| | | <string>1.5+</string> |
| | | <key>VMOptions</key> |
| | | <string>-client</string> |
| | | <key>MainClass</key> |
| | | <string>org.opends.guitools.controlpanel.ControlPanelLauncher</string> |
| | | <key>JVMVersion</key> |
| | | <string>1.6+</string> |
| | | <key>ClassPath</key> |
| | | <array> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/activation.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/je.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/mail.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/quicksetup.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_ca_ES.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_de.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_es.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_fr.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_ja.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_ko.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_pl.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_zh_CN.jar</string> |
| | | <string>$JAVAROOT/../../../../../lib/OpenDS_zh_TW.jar</string> |
| | | </array> |
| | | </dict> |
| | | </dict> |
| | | </plist> |
| | | |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| | | <plist version="1.0"> |
| | | <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> |
| | | <plist version="0.9"> |
| | | <dict> |
| | | <key>CFBundleAllowMixedLocalizations</key> |
| | | <string>true</string> |
| | | <key>CFBundleDevelopmentRegion</key> |
| | | <string>English</string> |
| | | <key>CFBundleExecutable</key> |
| | | <string>JavaApplicationStub</string> |
| | | <key>CFBundleGetInfoString</key> |
| | | <string>OpenDS QuickSetup</string> |
| | | <key>CFBundleIconFile</key> |
| | | <string>OpenDS.icns</string> |
| | | <key>CFBundleInfoDictionaryVersion</key> |
| | | <string>6.0</string> |
| | | <key>CFBundleName</key> |
| | | <string>OpenDS QuickSetup</string> |
| | | <key>CFBundleIdentifier</key> |
| | | <string>org.opends.quicksetup.installer.SetupLauncher</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>2.3.0</string> |
| | | <key>CFBundleAllowMixedLocalizations</key> |
| | | <string>true</string> |
| | | <key>CFBundleExecutable</key> |
| | | <string>JavaApplicationStub</string> |
| | | <key>CFBundleDevelopmentRegion</key> |
| | | <string>English</string> |
| | | <key>CFBundlePackageType</key> |
| | | <string>APPL</string> |
| | | <key>CFBundleSignature</key> |
| | | <string>????</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>1.0</string> |
| | | <key>CFBundleInfoDictionaryVersion</key> |
| | | <string>6.0</string> |
| | | <key>CFBundleIconFile</key> |
| | | <string>OpenDS.icns</string> |
| | | <key>Java</key> |
| | | <dict> |
| | | <key>ClassPath</key> |
| | | <array> |
| | | <string>$JAVAROOT/../../../../lib/quicksetup.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/activation.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/aspectjrt.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/mail.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/je.jar</string> |
| | | </array> |
| | | <key>JVMVersion</key> |
| | | <string>1.5+</string> |
| | | <key>VMOptions</key> |
| | | <string>-client</string> |
| | | <key>MainClass</key> |
| | | <string>org.opends.quicksetup.installer.SetupLauncher</string> |
| | | <key>JVMVersion</key> |
| | | <string>1.6+</string> |
| | | <key>ClassPath</key> |
| | | <array> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/activation.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/je.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/mail.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/quicksetup.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_ca_ES.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_de.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_es.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_fr.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_ja.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_ko.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_pl.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_zh_CN.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_zh_TW.jar</string> |
| | | </array> |
| | | </dict> |
| | | </dict> |
| | | </plist> |
| | | |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| | | <plist version="1.0"> |
| | | <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> |
| | | <plist version="0.9"> |
| | | <dict> |
| | | <key>CFBundleAllowMixedLocalizations</key> |
| | | <string>true</string> |
| | | <key>CFBundleDevelopmentRegion</key> |
| | | <string>English</string> |
| | | <key>CFBundleExecutable</key> |
| | | <string>JavaApplicationStub</string> |
| | | <key>CFBundleGetInfoString</key> |
| | | <string>OpenDS Uninstall</string> |
| | | <key>CFBundleIconFile</key> |
| | | <string>OpenDS.icns</string> |
| | | <key>CFBundleInfoDictionaryVersion</key> |
| | | <string>6.0</string> |
| | | <key>CFBundleName</key> |
| | | <string>OpenDS Uninstall</string> |
| | | <key>CFBundleIdentifier</key> |
| | | <string>org.opends.guitools.uninstaller.UninstallLauncher</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>2.3.0</string> |
| | | <key>CFBundleAllowMixedLocalizations</key> |
| | | <string>true</string> |
| | | <key>CFBundleExecutable</key> |
| | | <string>JavaApplicationStub</string> |
| | | <key>CFBundleDevelopmentRegion</key> |
| | | <string>English</string> |
| | | <key>CFBundlePackageType</key> |
| | | <string>APPL</string> |
| | | <key>CFBundleSignature</key> |
| | | <string>????</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>1.0</string> |
| | | <key>CFBundleInfoDictionaryVersion</key> |
| | | <string>6.0</string> |
| | | <key>CFBundleIconFile</key> |
| | | <string>OpenDS.icns</string> |
| | | <key>Java</key> |
| | | <dict> |
| | | <key>ClassPath</key> |
| | | <array> |
| | | <string>$JAVAROOT/../../../../lib/quicksetup.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/activation.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/aspectjrt.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/mail.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/je.jar</string> |
| | | </array> |
| | | <key>JVMVersion</key> |
| | | <string>1.5+</string> |
| | | <key>VMOptions</key> |
| | | <string>-client</string> |
| | | <key>MainClass</key> |
| | | <string>org.opends.guitools.uninstaller.UninstallLauncher</string> |
| | | <key>JVMVersion</key> |
| | | <string>1.6+</string> |
| | | <key>ClassPath</key> |
| | | <array> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/activation.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/je.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/mail.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/quicksetup.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_ca_ES.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_de.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_es.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_fr.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_ja.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_ko.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_pl.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_zh_CN.jar</string> |
| | | <string>$JAVAROOT/../../../../lib/OpenDS_zh_TW.jar</string> |
| | | </array> |
| | | </dict> |
| | | </dict> |
| | | </plist> |
| | | |
| | |
| | | </security> |
| | | |
| | | <resources> |
| | | <j2se version="1.5+" java-vm-args="-client"/> |
| | | <j2se version="1.6+" java-vm-args="-client"/> |
| | | <jar href="lib/quicksetup.jar" download="eager" main="true"/> |
| | | <jar href="lib/OpenDS.jar" download="lazy"/> |
| | | <jar href="lib/je.jar" download="lazy"/> |
| | |
| | | </resources> |
| | | |
| | | <resources os="AIX"> |
| | | <j2se version="1.5+"/> |
| | | <j2se version="1.6+"/> |
| | | </resources> |
| | | |
| | | <application-desc main-class="org.opends.quicksetup.SplashScreen"/> |
| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2007-2010 Sun Microsystems, Inc. |
| | | ! --> |
| | | <adm:managed-object name="regular-expression-identity-mapper" |
| | | plural-name="regular-expression-identity-mappers" |
| | |
| | | <adm:synopsis> |
| | | Any valid regular expression pattern which is supported by the |
| | | javax.util.regex.Pattern class |
| | | (see http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html |
| | | for documentation about this class for Java SE 5). |
| | | (see http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/regex/Pattern.html |
| | | for documentation about this class for Java SE 6). |
| | | </adm:synopsis> |
| | | </adm:pattern> |
| | | </adm:string> |
| | |
| | | property.match-base-dn.default-behavior.alias.synopsis=The server searches below all public naming contexts. |
| | | property.match-pattern.synopsis=Specifies the regular expression pattern that is used to identify portions of the ID string that will be replaced. |
| | | property.match-pattern.description=Any portion of the ID string that matches this pattern is replaced in accordance with the provided replace pattern (or is removed if no replace pattern is specified). If multiple substrings within the given ID string match this pattern, all occurrences are replaced. If no part of the given ID string matches this pattern, the ID string is not altered. Exactly one match pattern value must be provided, and it must be a valid regular expression as described in the API documentation for the java.util.regex.Pattern class, including support for capturing groups. |
| | | property.match-pattern.syntax.string.pattern.synopsis=Any valid regular expression pattern which is supported by the javax.util.regex.Pattern class (see http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html for documentation about this class for Java SE 5). |
| | | property.match-pattern.syntax.string.pattern.synopsis=Any valid regular expression pattern which is supported by the javax.util.regex.Pattern class (see http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/regex/Pattern.html for documentation about this class for Java SE 6). |
| | | property.replace-pattern.synopsis=Specifies the replacement pattern that should be used for substrings in the ID string that match the provided regular expression pattern. |
| | | property.replace-pattern.description=If no replacement pattern is provided, then any matching portions of the ID string will be removed (i.e., replaced with an empty string). The replacement pattern may include a string from a capturing group by using a dollar sign ($) followed by an integer value that indicates which capturing group should be used. |
| | | property.replace-pattern.default-behavior.alias.synopsis=The replace pattern will be the empty string. |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.messages; |
| | |
| | | |
| | | // Variable used to workaround a bug in AIX Java 1.6 |
| | | // TODO: remove this code once the JDK issue referenced in 3077 is closed. |
| | | private final boolean isAIXPost5 = isAIXPost5(); |
| | | private final boolean isAIX = isAIX(); |
| | | |
| | | /** |
| | | * Creates an uninternationalized message that will render itself |
| | |
| | | * Gets the string representation of this message. |
| | | * @return String representation of this message |
| | | */ |
| | | @Override |
| | | public String toString() { |
| | | return toString(Locale.getDefault()); |
| | | } |
| | |
| | | try { |
| | | // TODO: remove this code once the JDK issue referenced in 3077 is |
| | | // closed. |
| | | if (isAIXPost5) |
| | | if (isAIX) |
| | | { |
| | | // Java 6 in AIX Formatter does not handle properly Formattable |
| | | // arguments; this code is a workaround for the problem. |
| | |
| | | * @see #hashCode() |
| | | * @see java.util.Hashtable |
| | | */ |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) return true; |
| | | if (o == null || getClass() != o.getClass()) return false; |
| | |
| | | * @see java.lang.Object#equals(java.lang.Object) |
| | | * @see java.util.Hashtable |
| | | */ |
| | | @Override |
| | | public int hashCode() { |
| | | int result; |
| | | result = 31 * toString().hashCode(); |
| | |
| | | |
| | | // TODO: remove this code once the JDK issue referenced in 3077 is closed. |
| | | /** |
| | | * Returns whether we are running post 1.5 on AIX or not. |
| | | * @return <CODE>true</CODE> if we are running post 1.5 on AIX and |
| | | * Returns whether we are running on AIX or not. |
| | | * @return <CODE>true</CODE> if we are running on AIX and |
| | | * <CODE>false</CODE> otherwise. |
| | | */ |
| | | private boolean isAIXPost5() |
| | | private boolean isAIX() |
| | | { |
| | | boolean isJDK15 = false; |
| | | try |
| | | { |
| | | String javaRelease = System.getProperty ("java.version"); |
| | | isJDK15 = javaRelease.startsWith("1.5"); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | System.err.println("Cannot get the java version: " + t); |
| | | } |
| | | boolean isAIX = "aix".equalsIgnoreCase(System.getProperty("os.name")); |
| | | return !isJDK15 && isAIX; |
| | | return "aix".equalsIgnoreCase(System.getProperty("os.name")); |
| | | } |
| | | |
| | | } |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.util; |
| | |
| | | */ |
| | | enum CompatibleJava |
| | | { |
| | | JDK_SUN("Sun Microsystems Inc.", "1.5.0_08"); |
| | | JDK_SUN("Sun Microsystems Inc.", "1.6.0_10"); |
| | | private String vendor; |
| | | private String version; |
| | | |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.quicksetup.util; |
| | | |
| | |
| | | |
| | | /** |
| | | * The exception representing an incompatible java version being used. Even |
| | | * if the code can be run under 1.5, some bugs have been found in some versions |
| | | * of the JVM that prevent OpenDS to work properly (see |
| | | * if the code can be run under 1.6, some bugs might be found that prevent from |
| | | * using some of the 1.6 releases. |
| | | */ |
| | | public class IncompatibleVersionException extends OpenDsException |
| | | { |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2007-2009 Sun Microsystems, Inc. |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.server.admin; |
| | |
| | | * definition is the {@link TopCfgDefn}. |
| | | */ |
| | | public final boolean isTop() { |
| | | // Casting to Object and instanceof check are required |
| | | // to workaround a bug in JDK versions prior to 1.5.0_08. |
| | | return (this instanceof TopCfgDefn); |
| | | } |
| | | |
| | |
| | | propertyDefinitions.put(propName, d); |
| | | allPropertyDefinitions.put(propName, d); |
| | | |
| | | if (d instanceof AggregationPropertyDefinition) { |
| | | if (d instanceof AggregationPropertyDefinition<?,?>) { |
| | | AggregationPropertyDefinition<?, ?> apd = |
| | | (AggregationPropertyDefinition<?, ?>) d; |
| | | aggregationPropertyDefinitions.put(propName, apd); |
| | |
| | | */ |
| | | public class InstallDS extends ConsoleApplication |
| | | { |
| | | private PlainTextProgressMessageFormatter formatter = |
| | | private final PlainTextProgressMessageFormatter formatter = |
| | | new PlainTextProgressMessageFormatter(); |
| | | /** Prefix for log files. */ |
| | | static public final String LOG_FILE_PREFIX = "opends-setup-"; |
| | |
| | | LOG.log(Level.WARNING, "Error while trying to update the contents of "+ |
| | | "the set-java-home file in test only mode: "+t, t); |
| | | } |
| | | // Test that we are running a compatible java 1.5 version. |
| | | // Test that we are running a compatible java 1.6 version. |
| | | try |
| | | { |
| | | Utils.checkJavaVersion(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isQuiet() |
| | | { |
| | | return argParser.quietArg.isPresent(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isInteractive() |
| | | { |
| | | return !argParser.noPromptArg.isPresent(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isScriptFriendly() { |
| | | return false; |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isAdvancedMode() { |
| | | return false; |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isVerbose() { |
| | | return argParser.verboseArg.isPresent(); |
| | | } |
| | |
| | | |
| | | try { |
| | | for (PropertyDefinition<?> pd : d.getAllPropertyDefinitions()) { |
| | | if (pd instanceof AggregationPropertyDefinition) { |
| | | // Runtime cast is required to workaround a |
| | | // bug in JDK versions prior to 1.5.0_08. |
| | | if (pd instanceof AggregationPropertyDefinition<?,?>) { |
| | | AggregationPropertyDefinition<?, ?> apd = |
| | | AggregationPropertyDefinition.class.cast(pd); |
| | | (AggregationPropertyDefinition<?, ?>)pd; |
| | | |
| | | // Skip this aggregation if the referenced managed objects |
| | | // do not need to be enabled. |
| | |
| | | try { |
| | | for (PropertyDefinition<?> pd : d.getAllPropertyDefinitions()) { |
| | | if (pd instanceof AggregationPropertyDefinition<?,?>) { |
| | | // Runtime cast is required to workaround a |
| | | // bug in JDK versions prior to 1.5.0_08. |
| | | AggregationPropertyDefinition<?, ?> apd = |
| | | AggregationPropertyDefinition.class.cast(pd); |
| | | (AggregationPropertyDefinition<?, ?>)pd; |
| | | |
| | | // Skip this aggregation if the referenced managed objects |
| | | // do not need to be enabled. |
| | |
| | | static |
| | | { |
| | | String vendor = System.getProperty("java.vendor"); |
| | | String ver = System.getProperty("java.version"); |
| | | |
| | | if (vendor.startsWith("IBM")) |
| | | { |
| | | pkgPrefix = IBM_SEC; |
| | | if (ver.startsWith("1.5")) |
| | | { |
| | | IMPL = new IBM5PlatformIMPL(); |
| | | } |
| | | else |
| | | { |
| | | IMPL = new DefaultPlatformIMPL(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | pkgPrefix = SUN_SEC; |
| | | if (ver.startsWith("1.5")) |
| | | { |
| | | IMPL = new Sun5PlatformIMPL(); |
| | | } |
| | | else |
| | | { |
| | | IMPL = new DefaultPlatformIMPL(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | validity); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Sun 5 JDK platform class. |
| | | */ |
| | | private static class Sun5PlatformIMPL extends PlatformIMPL |
| | | { |
| | | // normalize method. |
| | | private static final Method NORMALIZE; |
| | | // Normalized form method. |
| | | private static final Object FORM_NFKC; |
| | | |
| | | static |
| | | { |
| | | Method normalize = null; |
| | | Object formNFKC = null; |
| | | try |
| | | { |
| | | Class<?> normalizer = Class.forName("sun.text.Normalizer"); |
| | | formNFKC = normalizer.getField("DECOMP_COMPAT").get(null); |
| | | Class<?> normalizerForm = Class.forName("sun.text.Normalizer$Mode"); |
| | | normalize = normalizer.getMethod("normalize", String.class, |
| | | normalizerForm, Integer.TYPE); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // Do not use Normalizer. The values are already set to null. |
| | | } |
| | | NORMALIZE = normalize; |
| | | FORM_NFKC = formNFKC; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public void normalize(StringBuilder buffer) |
| | | { |
| | | try |
| | | { |
| | | String normal = (String) NORMALIZE.invoke(null, buffer.toString(), |
| | | FORM_NFKC, 0); |
| | | buffer.replace(0, buffer.length(), normal); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // Don't do anything. buffer should be used. |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Default platform class. |
| | | */ |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * IBM JDK 5 platform class. |
| | | */ |
| | | private static class IBM5PlatformIMPL extends PlatformIMPL |
| | | { |
| | | |
| | | @Override |
| | | public void normalize(StringBuilder buffer) |
| | | { |
| | | // No implementation. |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Normalize the specified buffer. |
| | | * |
| | |
| | | { |
| | | 'name' : 'Compile Java files' , |
| | | 'command' : cmd , |
| | | 'arguments' : '-target 1.5 %s %s' % (cmdOptions,list) , |
| | | 'arguments' : '-target 1.6 %s %s' % (cmdOptions,list) , |
| | | 'location' : location , |
| | | 'path' : foldername , |
| | | 'envCmd' : env , |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.admin; |
| | | |
| | |
| | | |
| | | /** |
| | | * A mock LDAP profile wrapper for testing purposes. |
| | | * |
| | | * NOTE: The seemingly unnecessary casts throughout this class are |
| | | * required to work around a bug in JDK versions prior to 1.5.0_08. |
| | | */ |
| | | public final class MockLDAPProfile extends LDAPProfile.Wrapper { |
| | | |
| | |
| | | public String getAttributeName(AbstractManagedObjectDefinition<?, ?> d, |
| | | PropertyDefinition<?> pd) { |
| | | |
| | | // These casts throughout are required to work around a bug in JDK versions prior to 1.5.0_08. |
| | | if (d == (AbstractManagedObjectDefinition<?, ?>)TestParentCfgDefn.getInstance()) { |
| | | if (d == TestParentCfgDefn.getInstance()) { |
| | | TestParentCfgDefn td = TestParentCfgDefn.getInstance(); |
| | | |
| | | if (pd == (PropertyDefinition<?>)td.getMandatoryBooleanPropertyPropertyDefinition()) { |
| | |
| | | throw new RuntimeException("Unexpected test-parent property" |
| | | + pd.getName()); |
| | | } |
| | | } else if (d == (AbstractManagedObjectDefinition<?, ?>)TestChildCfgDefn.getInstance()) { |
| | | } else if (d == TestChildCfgDefn.getInstance()) { |
| | | TestChildCfgDefn td = TestChildCfgDefn.getInstance(); |
| | | |
| | | if (pd == (PropertyDefinition<?>)td.getMandatoryBooleanPropertyPropertyDefinition()) { |
| | |
| | | */ |
| | | @Override |
| | | public String getObjectClass(AbstractManagedObjectDefinition<?, ?> d) { |
| | | // These casts throughout are required to work around a bug in JDK versions prior to 1.5.0_08. |
| | | if (d == (AbstractManagedObjectDefinition<?, ?>)TestParentCfgDefn.getInstance()) { |
| | | if (d == TestParentCfgDefn.getInstance()) { |
| | | return "ds-cfg-test-parent-dummy"; |
| | | } else if (d == (AbstractManagedObjectDefinition<?, ?>)TestChildCfgDefn.getInstance()) { |
| | | } else if (d == TestChildCfgDefn.getInstance()) { |
| | | return "ds-cfg-test-child-dummy"; |
| | | } else { |
| | | // Not known. |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | { |
| | | if (rule.getAttributeType().equals(descriptionType)) |
| | | { |
| | | // Due to a bug in JDK versions prior to 1.5.0_08, we have to |
| | | // rewrite the following code. |
| | | // UserDefinedVirtualAttributeProvider provider = |
| | | // (UserDefinedVirtualAttributeProvider) |
| | | Object providerAsObject = rule.getProvider(); |
| | | UserDefinedVirtualAttributeProvider provider = |
| | | (UserDefinedVirtualAttributeProvider) providerAsObject; |
| | | (UserDefinedVirtualAttributeProvider) rule.getProvider(); |
| | | |
| | | assertFalse(provider.isMultiValued()); |
| | | assertFalse(provider.isSearchable(rule, searchOperation)); |
| | |
| | | { |
| | | if (rule.getAttributeType().equals(descriptionType)) |
| | | { |
| | | // Due to a bug in JDK versions prior to 1.5.0_08, we have to |
| | | // rewrite the following code. |
| | | // UserDefinedVirtualAttributeProvider provider = |
| | | // (UserDefinedVirtualAttributeProvider) |
| | | Object providerAsObject = rule.getProvider(); |
| | | UserDefinedVirtualAttributeProvider provider = |
| | | (UserDefinedVirtualAttributeProvider) providerAsObject; |
| | | (UserDefinedVirtualAttributeProvider) rule.getProvider(); |
| | | |
| | | assertTrue(provider.isMultiValued()); |
| | | assertFalse(provider.isSearchable(rule, searchOperation)); |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | assertNotNull(rule); |
| | | |
| | | // Due to a bug in JDK versions prior to 1.5.0_08, we have to |
| | | // rewrite the following code. |
| | | // MemberVirtualAttributeProvider provider = |
| | | // (MemberVirtualAttributeProvider) rule.getProvider(); |
| | | Object providerAsObject = rule.getProvider(); |
| | | MemberVirtualAttributeProvider provider = |
| | | (MemberVirtualAttributeProvider) providerAsObject; |
| | | (MemberVirtualAttributeProvider) rule.getProvider(); |
| | | |
| | | assertNotNull(provider); |
| | | |
| | |
| | | } |
| | | assertNotNull(rule); |
| | | |
| | | // Due to a bug in JDK versions prior to 1.5.0_08, we have to |
| | | // rewrite the following code. |
| | | // MemberVirtualAttributeProvider provider = |
| | | // (MemberVirtualAttributeProvider) rule.getProvider(); |
| | | Object providerAsObject = rule.getProvider(); |
| | | MemberVirtualAttributeProvider provider = |
| | | (MemberVirtualAttributeProvider) providerAsObject; |
| | | (MemberVirtualAttributeProvider) rule.getProvider(); |
| | | |
| | | assertNotNull(provider); |
| | | |