You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/02/26 22:40:59 UTC
svn commit: r381171 - in /lenya/trunk/src:
java/org/apache/lenya/cms/repository/SourceNode.java
pubs/blog/config/publication.xconf pubs/default/config/publication.xconf
Author: michi
Date: Sun Feb 26 13:40:54 2006
New Revision: 381171
URL: http://svn.apache.org/viewcvs?rev=381171&view=rev
Log:
content dir configurable tested on Windows
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java
lenya/trunk/src/pubs/blog/config/publication.xconf
lenya/trunk/src/pubs/default/config/publication.xconf
Modified: lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java?rev=381171&r1=381170&r2=381171&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java Sun Feb 26 13:40:54 2006
@@ -109,7 +109,7 @@
if (new File(contentDir).isAbsolute()) {
// Absolute
// Substitute "lenya://lenya/pubs/PUB_ID/content" by "contentDir"
- realSourceURI = "file:/" + contentDir + this.sourceURI.substring(Node.LENYA_PROTOCOL.length() + new String("lenya/pubs/" + publicationId + "/content").length());
+ realSourceURI = "file:/" + new File(contentDir + this.sourceURI.substring(Node.LENYA_PROTOCOL.length() + new String("lenya/pubs/" + publicationId + "/content").length())).getAbsolutePath();
} else {
// Relative
// Substitute "lenya://lenya/pubs/PUB_ID/content" by "contentDir"
Modified: lenya/trunk/src/pubs/blog/config/publication.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/pubs/blog/config/publication.xconf?rev=381171&r1=381170&r2=381171&view=diff
==============================================================================
--- lenya/trunk/src/pubs/blog/config/publication.xconf (original)
+++ lenya/trunk/src/pubs/blog/config/publication.xconf Sun Feb 26 13:40:54 2006
@@ -40,6 +40,6 @@
<!-- Absolute: -->
<!--
<content-dir src="/home/USERNAME/data/blog"/>
- <content-dir src="D:\tmp\blog"/>
+ <content-dir src="D:/tmp/blog"/>
-->
</publication>
Modified: lenya/trunk/src/pubs/default/config/publication.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/pubs/default/config/publication.xconf?rev=381171&r1=381170&r2=381171&view=diff
==============================================================================
--- lenya/trunk/src/pubs/default/config/publication.xconf (original)
+++ lenya/trunk/src/pubs/default/config/publication.xconf Sun Feb 26 13:40:54 2006
@@ -50,7 +50,7 @@
<!-- Absolute: -->
<!--
<content-dir src="/home/USERNAME/data/default"/>
- <content-dir src="D:\tmp\default"/>
+ <content-dir src="D:/tmp/default"/>
-->
<!--
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org