Error while running jetspeed seed scripts when using a path containing spaces
-----------------------------------------------------------------------------
Key: JS2-638
URL: https://issues.apache.org/jira/browse/JS2-638
Project: Jetspeed 2
Issue Type: Bug
Affects Versions: 2.1-dev
Environment: Windows XP
Reporter: Nicolas Dutertry
When I use the maven goal "j2:db.entities" I get the following error :
[echo] running _db.seed with data: D:/DEV/7.x/HR Projects/HR
Portal/target/portal-sql/ arguments: -b target/portal-sql/assembly/boot/ -c
target/portal-sql/assembly/ database-url: jdbc:mysql://localhost/hrportal
[java] Exception in thread "main" java.lang.IllegalArgumentException: Unknown
argument: Projects
[java] at
org.apache.jetspeed.serializer.JetspeedSerializerApplication.main(JetspeedSerializerApplication.java:163)
[java] [ERROR] Java Result: 1
That's because the path I use contains spaces.
To correct this issue, I think you can edit the file maven-plugin/plugin.jelly
and replace :
<arg line="-I ${DATAFILE} -b ${temp.assembly.dir}/boot/ -c
${temp.assembly.dir}/ -dc ${org.apache.jetspeed.database.driver} -ds
${org.apache.jetspeed.database.url} -du ${org.apache.jetspeed.database.user}
-dp ${org.apache.jetspeed.database.password}"/>
with :
<arg line="-I "${DATAFILE}" -b ${temp.assembly.dir}/boot/ -c
${temp.assembly.dir}/ -dc ${org.apache.jetspeed.database.driver} -ds
${org.apache.jetspeed.database.url} -du ${org.apache.jetspeed.database.user}
-dp ${org.apache.jetspeed.database.password}"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]