[Yanel-commits] rev 57585 - in public/yanel/trunk/src: build/java/org/wyona/yanel/ant realms/yanel-website/data-repo/data/en/documentation
ioannis at wyona.com
ioannis at wyona.com
Wed Mar 30 19:58:22 CEST 2011
Author: ioannis
Date: 2011-03-30 19:58:22 +0200 (Wed, 30 Mar 2011)
New Revision: 57585
Modified:
public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java
public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/how-to-add-a-new-realm.html
Log:
Updated the documentaton for addiing a new realm
Modified: public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java
===================================================================
--- public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java 2011-03-30 17:12:20 UTC (rev 57584)
+++ public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java 2011-03-30 17:58:22 UTC (rev 57585)
@@ -56,9 +56,12 @@
realm.appendChild(doc.createTextNode("\n ")); // formatting
Element config = doc.createElementNS(rootElement.getNamespaceURI(), "config");
+
String configSrcAttribute = newRealmConfig.toString();
- if (!configSrcAttribute.endsWith("/")) {
- configSrcAttribute += "/";
+ if (new File(newRealmConfig.toString()).isDirectory()) {
+ if (!configSrcAttribute.endsWith("/")) {
+ configSrcAttribute += "/";
+ }
}
config.setAttribute("src", configSrcAttribute);
Modified: public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/how-to-add-a-new-realm.html
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/how-to-add-a-new-realm.html 2011-03-30 17:12:20 UTC (rev 57584)
+++ public/yanel/trunk/src/realms/yanel-website/data-repo/data/en/documentation/how-to-add-a-new-realm.html 2011-03-30 17:58:22 UTC (rev 57585)
@@ -18,17 +18,16 @@
</p>
<ul>
<li>Download the Yulup Website from Wyona's repository using subversion:
- <pre>svn --username anonymous --password anonymous co http://svn.wyona.com/repos/public/yulup/website<br/></pre>
+ <pre>svn co http://svn.wyona.com/repos/public/yulup/website yulup-realm<br/></pre>
</li>
- <li>Check to see if you have the file $YANEL_HOME/conf/local/local.realms.xml. If you do not, copy the file $YANEL_HOME/conf/realms.xml to $YANEL_HOME/conf/local/local.realms.xml <br/></li><li>Add the following entry to $YANEL_HOME/conf/local/local.realms.xml
+ <li>Navigate to $YANEL_HOME and run
+ <pre>./build.sh add-realm -Drealm-config=$YULUP_WEBSITE/yanel/config/yanel-realm-config.xml -Drealm-mount-point=/yulup/ -Drealm-id=yulup<br/></pre>
+ </li>
+ <li>Alternatively, you can add the realm node directly into $YANEL_HOME/conf/local/local.realms.xml. If you do not have this file, copy $YANEL_HOME/conf/realms.xml to $YANEL_HOME/conf/local/local.realms.xml first<br/>
<pre><realm id="yulup" mount-point="/yulup/"><br/> <name>Yulup Website</name><br/> <config src="$YULUP_WEBSITE/yanel/config/yanel-realm-config.xml"/><br/></realm></pre>
<b>NOTE for Windows users:</b> Also use forward slashes, e.g.
<pre>D:/realms/foo/yanel/config/yanel-realm-config.xml<br/></pre>
- Alternatively one can also run
- <pre>
- ./build.sh add-realm -Drealm-config=src/realms/from-scratch-realm-template/realm.xml
- </pre>
- </li>
+ </li>
<li>Rebuild Yanel</li>
<li>Restart Yanel</li>
</ul>
More information about the Yanel-commits
mailing list