Author: bdaw
Date: 2009-04-02 14:31:50 -0400 (Thu, 02 Apr 2009)
New Revision: 417
Modified:
idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/LDAPTestPOJO.java
Log:
fix a fix
Modified: idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/LDAPTestPOJO.java
===================================================================
--- idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/LDAPTestPOJO.java 2009-04-02
17:37:09 UTC (rev 416)
+++ idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/LDAPTestPOJO.java 2009-04-02
18:31:50 UTC (rev 417)
@@ -116,28 +116,13 @@
URL ldifURL = Thread.currentThread().getContextClassLoader().getResource(ldif);
+ System.out.println("LDIF: " + ldifURL.toURI().getPath());
- File ldifFile;
-
- try
- {
- ldifFile = new File(ldifURL.toURI());
- }
- catch (URISyntaxException e)
- {
- ldifFile = new File(ldifURL.getPath());
- }
-
-
- //File ldif = new File(ldifRelativePath);
-
- System.out.println("LDIF: " + ldifFile.getAbsolutePath());
-
String[] cmd = new String[] {"-h", LDAP_HOST,
"-p", LDAP_PORT,
"-D", LDAP_PRINCIPAL,
"-w", LDAP_CREDENTIALS,
- "-a", "-f", ldifURL.getPath()};
+ "-a", "-f", ldifURL.toURI().getPath()};
System.out.println("Populate success: " + (LDAPModify.mainModify(cmd,
false, System.out, System.err) == 0));
Show replies by date