Bug #79

[Windows] Maven install lsc-core fails

Added by Clément Oudot about 1 year ago. Updated about 1 year ago.

Status:Closed Start:15/06/2009
Priority:Normal Due date:
Assigned to:Jonathan Clarke % Done:

100%

Category:Core
Target version:1.1.0
Problem in version:

Description

Hello,

it seems we cannot run mvn install for lsc-core under Windows:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Ldap Synchronization Connector
[INFO] 
[INFO] Id: org.lsc:lsc-core:jar:1.1-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to C:\Documents and Settings\p0075\workspace\lsc-core\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [antrun:run]
[INFO] Executing tasks

startLdapServer:
     [echo] Starting OpenDS embedded server from C:\Documents and Settings\p0075\workspace\lsc-core/target/test-classes
     [copy] Copying 2 files to C:\Documents and Settings\p0075\workspace\lsc-core\target\test-classes
     [java] 0    [main] ERROR  org.lsc.utils.LdapServer.main(LdapServer.java:113)   - java.io.FileNotFoundException: Source 'C:\Documents%20and%20Settings\p0075\workspace\lsc-core\target\test-classes\org\lsc\opends\config' does not exist
     [java] java.io.FileNotFoundException: Source 'C:\Documents%20and%20Settings\p0075\workspace\lsc-core\target\test-classes\org\lsc\opends\config' does not exist
     [java]     at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:668)
     [java]     at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:636)
     [java]     at org.lsc.opends.EmbeddedOpenDS.initOpendsDirectory(EmbeddedOpenDS.java:240)
     [java]     at org.lsc.opends.EmbeddedOpenDS.startServer(EmbeddedOpenDS.java:140)
     [java]     at org.lsc.utils.LdapServer.start(LdapServer.java:79)
     [java]     at org.lsc.utils.LdapServer.usage(LdapServer.java:140)
     [java]     at org.lsc.utils.LdapServer.main(LdapServer.java:103)
     [java] Java Result: 1

Or did I forget something in configuration?

Associated revisions

Revision 250
Added by Jonathan Clarke about 1 year ago

Fixes #79. Decode URLs to use them as filesystem paths in the LDAP server

History

Updated by Jonathan Clarke about 1 year ago

This is not Windows-only, it happens with any path containing a space.

I'm looking into this today, but as a workaround you could put your lsc-core in a path with no space, let's say c:\lsc ?

Updated by Clément Oudot about 1 year ago

I use it in Eclipse, in my workspace.

I could do that but this will not be possible for people without administrative privileges on their workstation.

Updated by Jonathan Clarke about 1 year ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Applied in changeset r250.

Updated by Jonathan Clarke about 1 year ago

  • Assigned to set to Jonathan Clarke
  • Target version set to 1.1.0

My last commit fixes this for me on Linux with spaces. Can you confirm this is OK on Windows, and close the bug if so?

Thanks! :)

Updated by Clément Oudot about 1 year ago

Hello,

this works but I have a little error in tests:

Running org.lsc.utils.LocalizedJndiModificationsLayoutTest
4608 [main] DEBUG  org.lsc.utils.I18n.setLocaleAndLoadMessages(I18n.java:171)   - Setting locale to en_US
4608 [main] DEBUG  org.lsc.Configuration.getConfigurationDirectory(Configuration.java:283)   - Configuration directory is C:\Documents and Settings\p0075\workspace\lsc-core\target\test-classes\
4608 [main] DEBUG  org.lsc.Configuration.getConfigurationDirectory(Configuration.java:283)   - Configuration directory is C:\Documents and Settings\p0075\workspace\lsc-core\target\test-classes\
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec <<< FAILURE!

Results :

Failed tests: 
  testNeutral(org.lsc.utils.LocalizedJndiModificationsLayoutTest)

Tests run: 37, Failures: 1, Errors: 0, Skipped: 0

This works when skipping tests :)

Updated by Jonathan Clarke about 1 year ago

Hmmm. Test LocalizedJndiModificationsLayoutTest tests the LOG4J formatter for outputting LDIF. I don't think it's related to this bug, and I don't reproduce it on my test setup here.

Can you open a new issue and attach the file "target/surefire-reports/org.lsc.utils.LocalizedJndiModificationsLayoutTest.txt"? Thanks.

Updated by Clément Oudot about 1 year ago

Jonathan Clarke wrote:

Hmmm. Test LocalizedJndiModificationsLayoutTest tests the LOG4J formatter for outputting LDIF. I don't think it's related to this bug, and I don't reproduce it on my test setup here.

Can you open a new issue and attach the file "target/surefire-reports/org.lsc.utils.LocalizedJndiModificationsLayoutTest.txt"? Thanks.

Done. You can close this one ;)

Updated by Jonathan Clarke about 1 year ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF