You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(233) |
Sep
(199) |
Oct
(206) |
Nov
(185) |
Dec
(270) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(232) |
Feb
(426) |
Mar
(623) |
Apr
(592) |
May
(506) |
Jun
(389) |
Jul
(160) |
Aug
(3) |
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
(5) |
2007 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
(4) |
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(5) |
Oct
(9) |
Nov
(6) |
Dec
(6) |
2008 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
(3) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(2) |
Sep
(12) |
Oct
(10) |
Nov
(54) |
Dec
(49) |
2009 |
Jan
(19) |
Feb
(13) |
Mar
(20) |
Apr
(24) |
May
(44) |
Jun
(29) |
Jul
(32) |
Aug
(10) |
Sep
(7) |
Oct
(10) |
Nov
(4) |
Dec
(17) |
2010 |
Jan
(14) |
Feb
(5) |
Mar
(23) |
Apr
(50) |
May
(31) |
Jun
(9) |
Jul
(5) |
Aug
(4) |
Sep
(7) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(12) |
Feb
(5) |
Mar
(5) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2012 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <jbo...@li...> - 2005-12-09 12:52:21
|
Author: wrzep Date: 2005-12-09 07:52:15 -0500 (Fri, 09 Dec 2005) New Revision: 1751 Modified: trunk/forge/portal-extensions/forge-status/project.xml trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusDescriptor.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusTools.java Log: separate xml file for plugins defs and for other params http://jira.jboss.com/jira/browse/JBLAB-415 Pawel Modified: trunk/forge/portal-extensions/forge-status/project.xml =================================================================== --- trunk/forge/portal-extensions/forge-status/project.xml 2005-12-09 06:50:00 UTC (rev 1750) +++ trunk/forge/portal-extensions/forge-status/project.xml 2005-12-09 12:52:15 UTC (rev 1751) @@ -56,7 +56,7 @@ <groupId>kosmos</groupId> <artifactId>kosmos</artifactId> <jar>kosmos-server.jar</jar> - <version>1.0</version> + <version>1.5</version> <properties> <war.bundle>true</war.bundle> </properties> Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-09 06:50:00 UTC (rev 1750) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-09 12:52:15 UTC (rev 1751) @@ -70,7 +70,7 @@ private HashSet<String> pluginsElements; - Status(String portalName, Node pluginsRoot, ScoreAlgorithmFactory scoreAlgorithm) { + Status(String portalName, Node statusRoot, Node pluginsRoot, ScoreAlgorithmFactory scoreAlgorithm) { this.portalName = portalName; this.scoreAlgorithm = scoreAlgorithm; Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusDescriptor.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusDescriptor.java 2005-12-09 06:50:00 UTC (rev 1750) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusDescriptor.java 2005-12-09 12:52:15 UTC (rev 1751) @@ -45,14 +45,17 @@ public StatusDescriptor(String portalName, ContentManager cm) { try { - String pluginsPath = StatusTools.getXmlCmPath(portalName); + String statusPath = StatusTools.getXmlCmPath(portalName); + Node statusRoot = getRoot(cm , statusPath); + + String pluginsPath = StatusTools.getXmlPluginsCmPath(portalName); Node pluginsRoot = getRoot(cm, pluginsPath); /* if ((root.getNodeType() == Node.ELEMENT_NODE) && (root.getNodeName().equals("projects"))) {}*/ - status = new Status(portalName, pluginsRoot, new WeightedScoreAlgorithmFactory()); + status = new Status(portalName, statusRoot, pluginsRoot, new WeightedScoreAlgorithmFactory()); fillContext(); Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusTools.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusTools.java 2005-12-09 06:50:00 UTC (rev 1750) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/StatusTools.java 2005-12-09 12:52:15 UTC (rev 1751) @@ -15,6 +15,7 @@ * <code>STATUS_XML<code> - file defining the list of watched feeds */ private final static String STATUS_XML = "status.xml"; + private final static String PLUGINS_XML = "plugins.xml"; /** * <code>STATUS_DIR</code> - directory in which file <code>PODCAST_XML<code> is stored. @@ -31,6 +32,10 @@ return portalName + "/" + STATUS_DIR + "/" + STATUS_XML; } + public static String getXmlPluginsCmPath(String portalName) { + return portalName + "/" + STATUS_DIR + "/" + PLUGINS_XML; + } + public static String getXmlCmPath(String portalName, String filename) { return portalName + "/" + STATUS_DIR + "/" + filename; } |
From: <jbo...@li...> - 2005-12-09 06:50:16
|
Author: aron.gombas Date: 2005-12-09 01:50:00 -0500 (Fri, 09 Dec 2005) New Revision: 1750 Modified: trunk/labs/kosmos/build/kosmos-project.properties trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ScrapingUtils.java Log: DOM downloading doesn't use Tidy anymore Modified: trunk/labs/kosmos/build/kosmos-project.properties =================================================================== --- trunk/labs/kosmos/build/kosmos-project.properties 2005-12-08 22:22:54 UTC (rev 1749) +++ trunk/labs/kosmos/build/kosmos-project.properties 2005-12-09 06:50:00 UTC (rev 1750) @@ -1,3 +1,3 @@ project.name=Kosmos project.name.short=kosmos -project.version=0.1.6-dev +project.version=0.1.7 Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java 2005-12-08 22:22:54 UTC (rev 1749) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java 2005-12-09 06:50:00 UTC (rev 1750) @@ -88,7 +88,7 @@ try { // scrape log File latestLog = findLatestLog(dir); - Document dom = ScrapingUtils.downloadDom(latestLog.toURL()); + Document dom = ScrapingUtils.downloadXmlDom(latestLog.toURL()); // scape "global" properties String name = ScrapingUtils.runXQueryString(dom, "<dummy> { data(//property[@name='projectname']/@value) } </dummy>"); Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ScrapingUtils.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ScrapingUtils.java 2005-12-08 22:22:54 UTC (rev 1749) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ScrapingUtils.java 2005-12-09 06:50:00 UTC (rev 1750) @@ -11,6 +11,7 @@ import java.util.List; import net.sf.saxon.Configuration; +import net.sf.saxon.dom.DocumentBuilderFactoryImpl; import net.sf.saxon.dom.DocumentWrapper; import net.sf.saxon.om.NodeInfo; import net.sf.saxon.query.DynamicQueryContext; @@ -36,30 +37,30 @@ /** This class should never be instantiated. */ protected ScrapingUtils() { } - /** Tidies up an HTML document from the given URL and returns it as DOM. */ + /** Downloads and tidies up an HTML document from the given URL and returns it as DOM. */ public static Document downloadHtmlDom(URL url) throws Exception { - return downloadDom(url, false); - } - - /** Tidies up an XML document from the given URL and returns it as DOM. */ - public static Document downloadDom(URL url) throws Exception { - return downloadDom(url, true); - } - - /** Tidies up an XML or HTML document from the given document and returns it as dom. */ - protected static Document downloadDom(URL url, boolean isXml) throws Exception { - log.debug("Downloading " + url + "..."); + log.debug("Downloading HTML DOM from " + url + "..."); Tidy tidy = new Tidy(); tidy.setQuiet(true); tidy.setShowWarnings(false); - tidy.setXmlTags(isXml); + tidy.setXmlTags(false); Document dom = tidy.parseDOM(url.openStream(), null); log.debug("DOM top-level children: " + dom.getChildNodes().getLength()); return dom; } + + /** Downloads an XML document from the given URL and returns it as DOM. */ + public static Document downloadXmlDom(URL url) throws Exception { + log.debug("Downloading DOM from " + url + "..."); + Document dom = DocumentBuilderFactoryImpl.newInstance().newDocumentBuilder().parse(url.openStream()); + log.debug("DOM top-level children: " + dom.getChildNodes().getLength()); + + return dom; + } + /** Runs an XQuery on the given DOM and returns the full result. */ public static List runXQuery(Document dom, String query) throws XPathException { Configuration configuration = new Configuration(); |
From: <jbo...@li...> - 2005-12-08 22:23:06
|
Author: adamw Date: 2005-12-08 17:22:54 -0500 (Thu, 08 Dec 2005) New Revision: 1749 Added: trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/CopyMoveTest.java Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/PropertiesTest.java Log: http://jira.jboss.com/jira/browse/JBSHOTOKU-40 http://jira.jboss.com/jira/browse/JBSHOTOKU-13 http://jira.jboss.com/jira/browse/JBSHOTOKU-43 Tests + bug fixes Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java 2005-12-08 20:31:17 UTC (rev 1748) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java 2005-12-08 22:22:54 UTC (rev 1749) @@ -37,7 +37,8 @@ */ public interface Resource { /** - * Copies this resource to the given directory. + * Copies this resource to the given directory. This can't be called if + * this resource is new and not yet saved. * * @param dir * Directory to copy this resource to. This can't be a new and @@ -52,7 +53,9 @@ String logMessage) throws CopyException; /** - * Moves this resource to the given directory. + * Moves this resource to the given directory. This can't be called if + * this resource is new and not yet saved. This resource should not be + * used after performing this operation. * * @param dir * Directory to move this resource to. This can't be a new and @@ -121,7 +124,8 @@ /** * Deletes this node or directory (immediately, no <code>save()</code> is - * needed). This node should not be used after performing this operation. + * needed). This resource should not be used after performing this + * operation. * * @throws DeleteException * @throws RepositoryException Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java 2005-12-08 20:31:17 UTC (rev 1748) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java 2005-12-08 22:22:54 UTC (rev 1749) @@ -25,6 +25,7 @@ import java.util.HashMap; import java.util.Map; +import org.jboss.shotoku.Directory; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.exceptions.ResourceAlreadyExists; import org.jboss.shotoku.svn.SvnContentManager.ExistsType; @@ -154,16 +155,28 @@ // saved. } + @Override public SvnNode newNode(String name) throws ResourceAlreadyExists { return newNode(basePath, Tools.concatenatePaths(newPath, name)); } + @Override public SvnDirectory newDirectory(String name) throws ResourceAlreadyExists { return newDirectory(basePath, Tools.concatenatePaths(newPath, name)); } @Override + public void moveTo(Directory dir, String logMessage) { + throw new RepositoryException("Resource not yet saved!"); + } + + @Override + public void copyTo(Directory dir, String newName, String logMessage) { + throw new RepositoryException("Resource not yet saved!"); + } + + @Override public void setIndex(String propertyName, boolean index) { throw new RepositoryException("Directory not yet saved."); } Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java 2005-12-08 20:31:17 UTC (rev 1748) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java 2005-12-08 22:22:54 UTC (rev 1749) @@ -26,6 +26,8 @@ import java.util.HashMap; import java.util.Map; +import org.jboss.shotoku.Directory; +import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.svn.SvnContentManager.ExistsType; import org.jboss.shotoku.svn.content.NodeContent; import org.jboss.shotoku.svn.operations.AddDirectoryOperation; @@ -149,6 +151,16 @@ * Node IMPLEMENTATION */ + @Override + public void moveTo(Directory dir, String logMessage) { + throw new RepositoryException("Resource not yet saved!"); + } + + @Override + public void copyTo(Directory dir, String newName, String logMessage) { + throw new RepositoryException("Resource not yet saved!"); + } + public long getLastModification() { // This node is brand new - so modified "now". return Calendar.getInstance().getTimeInMillis(); Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java 2005-12-08 20:31:17 UTC (rev 1748) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java 2005-12-08 22:22:54 UTC (rev 1749) @@ -47,6 +47,6 @@ public void addModifiedPaths(SvnService service) { service.addDirectoryToModfied(id, parentPath); - service.addNodeToModfied(id, path); + service.addToDeleted(id, path); } } Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-08 20:31:17 UTC (rev 1748) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-08 22:22:54 UTC (rev 1749) @@ -416,15 +416,43 @@ } } + public static void testCopy() throws Exception { + try { + Directory parent = cm.getRootDirectory().newDirectory(TEST_DIR); + Directory dir1 = parent.newDirectory("dir1"); + Directory dir2 = parent.newDirectory("dir2"); + Node n1 = dir1.newNode("node1"); + n1.setContent(TEST_CONTENT); + + cm.save(parent, dir1, dir2, n1, "setup"); + + Node original = cm.getNode(TEST_DIR + "/dir1/node1"); + original.copyTo(cm.getDirectory(TEST_DIR + "/dir2"), "node2", "copy-node"); + + System.out.println(TEST_CONTENT.equals(original.getContent())); + System.out.println(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/node2").getContent())); + /* + // Waiting for a WC update. + Thread.sleep(1000 * 20); + + System.out.println(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir1/node1").getContent())); + System.out.println(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/node2").getContent()));*/ + } finally { + try { + cm.getDirectory(TEST_DIR).delete(); + } catch (ResourceDoesNotExist e) { + + } + } + } + public static void main(String[] argv) throws Exception { long now = Calendar.getInstance().getTimeInMillis(); ContentManager.setup(); cm = ContentManager.getContentManager("shotoku-test"); - Directory d = cm.getDirectory("dir1/dir3"); - d.moveTo(cm.getDirectory("test2/test3"), "yyy"); - + testCopy(); //multiSaveTest(); //testInject(); //testNested(); Added: trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/CopyMoveTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/CopyMoveTest.java 2005-12-08 20:31:17 UTC (rev 1748) +++ trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/CopyMoveTest.java 2005-12-08 22:22:54 UTC (rev 1749) @@ -0,0 +1,132 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.test; + +import org.jboss.shotoku.Directory; +import org.jboss.shotoku.Node; +import org.jboss.shotoku.exceptions.ResourceAlreadyExists; +import org.jboss.shotoku.exceptions.ResourceDoesNotExist; + +/** + * + * @author Adam Warski (ad...@as...) + */ +public class CopyMoveTest extends ShotokuTest { + private final static String TEST_DIR = "copy-move-test"; + private final static String TEST_CONTENT = "test content"; + + @Override + protected void setUp() throws Exception { + Directory parent = cm.getRootDirectory().newDirectory(TEST_DIR); + Directory dir1 = parent.newDirectory("dir1"); + Directory dir2 = parent.newDirectory("dir2"); + Node n1 = dir1.newNode("node1"); + n1.setContent(TEST_CONTENT); + + cm.save(parent, dir1, dir2, n1, "setup"); + } + + public void testNodeCopy() throws Exception { + Node original = cm.getNode(TEST_DIR + "/dir1/node1"); + original.copyTo(cm.getDirectory(TEST_DIR + "/dir2"), "node2", "copy-node"); + + assertTrue(TEST_CONTENT.equals(original.getContent())); + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/node2").getContent())); + + // Waiting for a WC update. + Thread.sleep(1000 * 20); + + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir1/node1").getContent())); + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/node2").getContent())); + } + + public void testNodeMove() throws Exception { + Node original = cm.getNode(TEST_DIR + "/dir1/node1"); + original.moveTo(cm.getDirectory(TEST_DIR + "/dir2"), "move-node"); + + // The old node shouldn't exist. + try { + cm.getNode(TEST_DIR + "/dir1/node1"); + fail("A node which shouldn't exist - does"); + } catch (ResourceDoesNotExist e) { + + } + + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/node1").getContent())); + + // Waiting for a WC update. + Thread.sleep(1000 * 20); + + try { + cm.getNode(TEST_DIR + "/dir1/node1"); + fail("A node which shouldn't exist - does"); + } catch (ResourceDoesNotExist e) { + + } + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/node1").getContent())); + } + + public void testDirectoryCopy() throws Exception { + Directory original = cm.getDirectory(TEST_DIR + "/dir1"); + original.copyTo(cm.getDirectory(TEST_DIR + "/dir2"), "dir3", "copy-dir"); + + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/dir3/node1").getContent())); + + // Waiting for a WC update. + Thread.sleep(1000 * 20); + + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/dir3/node1").getContent())); + } + + public void testDirectoryMove() throws Exception { + Directory original = cm.getDirectory(TEST_DIR + "/dir1"); + original.moveTo(cm.getDirectory(TEST_DIR + "/dir2"), "move-dir"); + + try { + cm.getDirectory(TEST_DIR + "/dir1"); + fail("A directory which shouldn't exist - does"); + } catch (ResourceDoesNotExist e) { + + } + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/dir1/node1").getContent())); + + // Waiting for a WC update. + Thread.sleep(1000 * 20); + + try { + cm.getDirectory(TEST_DIR + "/dir1"); + fail("A directory which shouldn't exist - does"); + } catch (ResourceDoesNotExist e) { + + } + assertTrue(TEST_CONTENT.equals(cm.getNode(TEST_DIR + "/dir2/dir1/node1").getContent())); + } + + @Override + protected void tearDown() throws ResourceAlreadyExists, ResourceDoesNotExist { + try { + cm.getDirectory(TEST_DIR).delete(); + } catch (ResourceDoesNotExist e) { + + } + } +} Modified: trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/PropertiesTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/PropertiesTest.java 2005-12-08 20:31:17 UTC (rev 1748) +++ trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/PropertiesTest.java 2005-12-08 22:22:54 UTC (rev 1749) @@ -21,6 +21,8 @@ */ package org.jboss.shotoku.test; +import java.util.Map; + import org.jboss.shotoku.Node; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.exceptions.ResourceAlreadyExists; @@ -89,6 +91,31 @@ PROP_NAME))); } + private void checkProperties(Node n) { + Map<String, String> props = n.getAllProperties(); + + assertTrue(3 == props.size()); + assertTrue("v1".equals(props.get("p1"))); + assertTrue("v2".equals(props.get("p2"))); + assertTrue("v3".equals(props.get("p3"))); + } + + public void testGetAllProperties() throws Exception { + Node n = cm.getNode(TEST_FILE); + + n.setProperty("p1", "v1"); + n.setProperty("p2", "v2"); + n.setProperty("p3", "v3"); + n.save("a"); + + checkProperties(n); + + // Waiting for a WC update. + Thread.sleep(1000 * 20); + checkProperties(n); + checkProperties(cm.getNode(TEST_FILE)); + } + @Override protected void tearDown() throws ResourceAlreadyExists, ResourceDoesNotExist { cm.getNode(TEST_FILE).delete(); |
From: <jbo...@li...> - 2005-12-08 20:31:38
|
Author: adamw Date: 2005-12-08 15:31:17 -0500 (Thu, 08 Dec 2005) New Revision: 1748 Added: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/CopyException.java trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/MoveException.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/InternalSvnException.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyDirectoryOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyFileOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnNode.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnContentManager.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectoryProxy.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileNode.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNodeProxy.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoNode.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnTools.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java Log: http://jira.jboss.com/jira/browse/JBSHOTOKU-13 http://jira.jboss.com/jira/browse/JBSHOTOKU-43 http://jira.jboss.com/jira/browse/JBSHOTOKU-40 Implementation. Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/Resource.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -21,7 +21,11 @@ */ package org.jboss.shotoku; +import java.util.Map; + +import org.jboss.shotoku.exceptions.CopyException; import org.jboss.shotoku.exceptions.DeleteException; +import org.jboss.shotoku.exceptions.MoveException; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.exceptions.SaveException; @@ -33,6 +37,41 @@ */ public interface Resource { /** + * Copies this resource to the given directory. + * + * @param dir + * Directory to copy this resource to. This can't be a new and + * not saved directory. + * @param newName + * New name of this resource (in directory dir after copying). + * @param logMessage + * Log message associated with this resource copy. + * @throws CopyException + */ + public void copyTo(Directory dir, String newName, + String logMessage) throws CopyException; + + /** + * Moves this resource to the given directory. + * + * @param dir + * Directory to move this resource to. This can't be a new and + * not saved directory. + * @param logMessage + * Log message associated with this resource move. + * @throws MoveException + */ + public void moveTo(Directory dir, String logMessage) throws MoveException; + + /** + * Gets a map of all properties associated with this resource. + * + * @return A map of properties associated with this resource. + * @throws RepositoryException + */ + public Map<String, String> getAllProperties() throws RepositoryException; + + /** * Gets the value of the given property. * * @param propertyName Added: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/CopyException.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/CopyException.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/CopyException.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -0,0 +1,40 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.exceptions; + +/** + * + * @author Adam Warski (ad...@as...) + */ +public class CopyException extends Exception { + public CopyException(Exception e) { + super(e); + } + + public CopyException(String msg) { + super(msg); + } + + public CopyException() { + + } +} Added: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/MoveException.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/MoveException.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/MoveException.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -0,0 +1,40 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.exceptions; + +/** + * + * @author Adam Warski (ad...@as...) + */ +public class MoveException extends Exception { + public MoveException(Exception e) { + super(e); + } + + public MoveException(String msg) { + super(msg); + } + + public MoveException() { + + } +} Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnDirectory.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnDirectory.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -32,9 +32,11 @@ import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.exceptions.ResourceAlreadyExists; import org.jboss.shotoku.exceptions.ResourceDoesNotExist; +import org.jboss.shotoku.svn.operations.CopyDirectoryOperation; import org.jboss.shotoku.svn.operations.ModifyDirectoryOperation; import org.jboss.shotoku.svn.operations.ResourceOperation; import org.jboss.shotoku.tools.Tools; +import org.tmatesoft.svn.core.SVNException; /** * @author Adam Warski (ad...@as...) @@ -80,6 +82,14 @@ new SvnMemDirectory(getId(), basePath, newPath, getSvnCm())); } + protected ResourceOperation getCopyOperation(SvnResource + destination, String newName) throws SVNException { + + return new CopyDirectoryOperation(getId(), getFullPath(), + destination.getFullPath(), newName, + getCopyRevision()); + } + /* * INTERNAL OPS DECLARATION */ Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnNode.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnNode.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnNode.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -37,8 +37,10 @@ import org.jboss.shotoku.NodeList; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.svn.content.NodeContent; +import org.jboss.shotoku.svn.operations.CopyFileOperation; import org.jboss.shotoku.svn.operations.ModifyFileOperation; import org.jboss.shotoku.svn.operations.ResourceOperation; +import org.tmatesoft.svn.core.SVNException; /** * @author Adam Warski (ad...@as...) @@ -87,6 +89,14 @@ } } + protected ResourceOperation getCopyOperation(SvnResource + destination, String newName) throws SVNException { + + return new CopyFileOperation(getId(), getFullPath(), + destination.getFullPath(), newName, + getCopyRevision()); + } + public void notifySaved() { super.notifySaved(); content.markUnchanged(); Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -21,15 +21,22 @@ */ package org.jboss.shotoku.svn; +import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; import java.util.Set; +import org.jboss.shotoku.Directory; import org.jboss.shotoku.Resource; +import org.jboss.shotoku.exceptions.CopyException; import org.jboss.shotoku.exceptions.DeleteException; +import org.jboss.shotoku.exceptions.MoveException; import org.jboss.shotoku.exceptions.ResourceDoesNotExist; import org.jboss.shotoku.exceptions.SaveException; +import org.jboss.shotoku.svn.operations.DeleteOperation; +import org.jboss.shotoku.svn.operations.ResourceOperation; import org.jboss.shotoku.svn.operations.WorkspaceMediator; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.io.ISVNEditor; @@ -130,7 +137,14 @@ protected abstract String getPropertyInternal(String name); protected abstract String getLogMessageInternal(); + protected abstract Map<String, String> getAllPropertiesInternal(); + protected abstract ResourceOperation getCopyOperation(SvnResource + destination, String newName) throws SVNException; + protected long getCopyRevision() throws SVNException { + return getSvnCm().getRepository().getLatestRevision(); + } + /* * AbstractResource INTERFACE IMPLEMENTATION */ @@ -155,6 +169,13 @@ return getPropertyInternal(name); } + public Map<String, String> getAllProperties() { + Map<String, String> ret = getAllPropertiesInternal(); + ret.putAll(modifiedProperties); + + return ret; + } + public void setProperty(String name, String value) { modifiedProperties.put(name, value); } @@ -167,6 +188,76 @@ return fullName; } + /** + * Casts the given directory to SvnDirectory, and checks if it isn't + * new and not yet saved. If so, or there's a ClassCastException, an + * InternalSvnException is thrown. + */ + private SvnDirectory getSvnDirectory(Directory dir) + throws InternalSvnException { + /* + * This must be a svn directory. Who would be stupid enough to + * give a directory from another implementation ... + */ + SvnDirectory svnDir; + try { + svnDir = (SvnDirectory) dir; + } catch (ClassCastException e) { + throw new InternalSvnException("Use svn functions to only with " + + "svn directories!"); + } + + if (!svnDir.switchable()) { + throw new InternalSvnException("The given directory is new and not " + + "yet saved!"); + } + + return svnDir; + } + + public void copyTo(Directory dir, String newName, String logMessage) throws CopyException { + SvnDirectory svnDir; + try { + svnDir = getSvnDirectory(dir); + } catch (InternalSvnException e) { + throw new CopyException(e); + } + + try { + List<ResourceOperation> opsList = + new ArrayList<ResourceOperation>(); + + opsList.add(getCopyOperation(svnDir, newName)); + + getSvnCm().performOperations(opsList, logMessage); + } catch (SVNException e) { + throw new CopyException(e); + } + } + + public void moveTo(Directory dir, String logMessage) throws MoveException { + SvnDirectory svnDir; + try { + svnDir = getSvnDirectory(dir); + } catch (InternalSvnException e) { + throw new MoveException(e); + } + + try { + List<ResourceOperation> opsList = + new ArrayList<ResourceOperation>(); + + // Move = copy + delete. + opsList.add(getCopyOperation(svnDir, getName())); + opsList.add(new DeleteOperation(getId(), getFullPath(), + getParent().getFullPath())); + + getSvnCm().performOperations(opsList, logMessage); + } catch (SVNException e) { + throw new MoveException(e); + } + } + public void delete() throws DeleteException { ISVNEditor editor = null; try { @@ -207,24 +298,8 @@ } public SvnDirectory getParent() { - // Checking if this isn't the root directory already. - if ("".equals(name)) - return null; - - String parentPath; - - int lastSlash = fullName.lastIndexOf('/'); - if (lastSlash == -1) { - // No / at all in the path - this resource must be a child of the - // root directory. - parentPath = ""; - } else { - // Getting the parent path. - parentPath = fullName.substring(0, lastSlash); - } - try { - return getSvnCm().getDirectory(parentPath); + return getSvnCm().getDirectory(SvnTools.getParentFullName(this)); } catch (ResourceDoesNotExist e) { // Impossible (almost, unless the dir was deleted ...) return null; Added: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/InternalSvnException.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/InternalSvnException.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/InternalSvnException.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -0,0 +1,40 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.svn; + +/** + * + * @author Adam Warski (ad...@as...) + */ +public class InternalSvnException extends Exception { + public InternalSvnException(String msg) { + super(msg); + } + + public InternalSvnException() { + + } + + public InternalSvnException(Exception e) { + super(e); + } +} Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnContentManager.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnContentManager.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnContentManager.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -266,9 +266,7 @@ throws SaveException { /* * Collection all operations to perform - duplicates are automatically - * removed as we use a Set. Also, collecting NodeContent objects which - * will be used while executing operations, so we can initialize a - * NodeContentMediator. + * removed as we use a Set. */ Set<ResourceOperation> ops = new HashSet<ResourceOperation>(); for (Resource resource : resources) { @@ -281,15 +279,33 @@ new ArrayList<ResourceOperation>(ops); Collections.sort(opsList); + try { + performOperations(opsList, logMessage); + } catch (SVNException e) { + throw new SaveException(e); + } + + /* + * Now notifying each resource that a save happened, so they can switch + * their implementations (proxies) to the "repository" version. + */ + for (Resource resource : resources) { + try { + SvnResource svnResource = (SvnResource) resource; + svnResource.notifySaved(); + } catch (RepositoryException e) { + throw new SaveException(e); + } + } + } + + protected void performOperations(List<ResourceOperation> opsList, + String logMessage) throws SVNException { ISVNEditor editor = null; try { - /* - * We create a NodeContentMediator, later a PathStack, which will - * be supplied to all operations while executing. - */ editor = repository.getCommitEditor(logMessage, new WorkspaceMediator()); - + PathsStack stack = new PathsStack(editor); // Now that we have the good operation order, we can execute them. @@ -307,23 +323,10 @@ } } catch (SVNException e1) { // Can't do much here. - // TODO - e1.printStackTrace(); } - throw new SaveException(e); + + throw e; } - - /* - * Now notifying each resource that a save happened, so they can switch - * their implementations (proxies) to the "repository" version. - */ - for (Resource resource : resources) { - try { - SvnResource svnResource = (SvnResource) resource; - svnResource.notifySaved(); - } catch (RepositoryException e) { - throw new SaveException(e); - } - } } + } Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectoryProxy.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectoryProxy.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectoryProxy.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -22,10 +22,13 @@ package org.jboss.shotoku.svn; import java.util.List; +import java.util.Map; import org.jboss.shotoku.Directory; import org.jboss.shotoku.Node; import org.jboss.shotoku.NodeList; +import org.jboss.shotoku.exceptions.CopyException; +import org.jboss.shotoku.exceptions.MoveException; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.exceptions.ResourceAlreadyExists; import org.jboss.shotoku.exceptions.ResourceDoesNotExist; @@ -111,4 +114,18 @@ checkSwitch(); currentDirectory.setIndex(name, index); } + + public void moveTo(Directory dir, String logMessage) throws MoveException { + currentDirectory.moveTo(dir, logMessage); + } + + public Map<String, String> getAllProperties() throws RepositoryException { + checkSwitch(); + return currentDirectory.getAllProperties(); + } + + public void copyTo(Directory dir, String newName, String logMessage) + throws CopyException { + currentDirectory.copyTo(dir, newName, logMessage); + } } Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -23,6 +23,7 @@ import java.io.File; import java.io.FilenameFilter; +import java.util.Map; /** * @author Adam Warski (ad...@as...) @@ -50,6 +51,11 @@ return SvnTools.getLogMessageInternal(getSvnCm(), file); } + @Override + protected Map<String, String> getAllPropertiesInternal() { + return SvnTools.getAllProperties(file, getSvnCm()); + } + /* * INTERNAL OPS IMPLEMENTATION */ Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileNode.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileNode.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileNode.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -22,6 +22,7 @@ package org.jboss.shotoku.svn; import java.io.File; +import java.util.Map; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.svn.content.FileNodeContent; @@ -56,6 +57,11 @@ return SvnTools.getLogMessageInternal(getSvnCm(), file); } + @Override + protected Map<String, String> getAllPropertiesInternal() { + return SvnTools.getAllProperties(file, getSvnCm()); + } + /* * Node IMPLEMENTATION */ Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnHistoricNode.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -28,9 +28,11 @@ import java.util.HashMap; import java.util.Map; +import org.jboss.shotoku.Directory; import org.jboss.shotoku.exceptions.NodeReadOnly; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.svn.content.NodeContent; +import org.tmatesoft.svn.core.SVNException; /** * @author Adam Warski (ad...@as...) @@ -69,6 +71,16 @@ return logMessage; } + @Override + protected Map<String, String> getAllPropertiesInternal() { + return properties; + } + + @Override + protected long getCopyRevision() throws SVNException { + return revisionAbsolute; + } + private void loadContentAndProperties() { if (getNodeContent() == null) { properties = new HashMap<String, String>(); @@ -163,4 +175,9 @@ public void setContent(byte[] arg0) { throw new NodeReadOnly(); } + + @Override + public void moveTo(Directory d, String logMessage) { + throw new NodeReadOnly(); + } } Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemDirectory.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -22,6 +22,8 @@ package org.jboss.shotoku.svn; import java.util.Collection; +import java.util.HashMap; +import java.util.Map; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.exceptions.ResourceAlreadyExists; @@ -95,6 +97,12 @@ } @Override + protected Map<String, String> getAllPropertiesInternal() { + // This resource isn't saved - so it has no properties. + return new HashMap<String, String>(); + } + + @Override protected String getLogMessageInternal() { // This directory wasn't saved yet. return null; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnMemNode.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -23,6 +23,8 @@ import java.util.Calendar; import java.util.Collection; +import java.util.HashMap; +import java.util.Map; import org.jboss.shotoku.svn.SvnContentManager.ExistsType; import org.jboss.shotoku.svn.content.NodeContent; @@ -65,6 +67,12 @@ } @Override + protected Map<String, String> getAllPropertiesInternal() { + // This resource isn't saved - so it has no properties. + return new HashMap<String, String>(); + } + + @Override protected String getLogMessageInternal() { // This resource wasn't saved yet. return null; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNodeProxy.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNodeProxy.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNodeProxy.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -24,8 +24,12 @@ import java.io.InputStream; import java.io.OutputStream; import java.util.Date; +import java.util.Map; +import org.jboss.shotoku.Directory; import org.jboss.shotoku.History; +import org.jboss.shotoku.exceptions.CopyException; +import org.jboss.shotoku.exceptions.MoveException; import org.jboss.shotoku.exceptions.RepositoryException; import org.jboss.shotoku.svn.content.NodeContent; @@ -156,4 +160,18 @@ // called from the implementation of this function in SvnNode. return currentNode.getLastModificationDate(); } + + public void moveTo(Directory dir, String logMessage) throws MoveException { + currentNode.moveTo(dir, logMessage); + } + + public void copyTo(Directory dir, String newName, String logMessage) + throws CopyException { + currentNode.copyTo(dir, newName, logMessage); + } + + public Map<String, String> getAllProperties() throws RepositoryException { + checkSwitch(); + return currentNode.getAllProperties(); + } } Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -48,6 +48,12 @@ loadDirectoryContent(); return properties.get(name); } + + @Override + protected Map<String, String> getAllPropertiesInternal() { + loadDirectoryContent(); + return properties; + } @Override protected String getLogMessageInternal() { Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoNode.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoNode.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoNode.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -63,6 +63,12 @@ loadContentAndProperties(true); return properties.get(name); } + + @Override + protected Map<String, String> getAllPropertiesInternal() { + loadContentAndProperties(true); + return properties; + } @Override protected String getLogMessageInternal() { Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnTools.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnTools.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnTools.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -24,6 +24,7 @@ import java.io.File; import java.io.OutputStream; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; import java.util.Map; @@ -39,6 +40,8 @@ import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNLogEntry; import org.tmatesoft.svn.core.SVNNodeKind; +import org.tmatesoft.svn.core.SVNURL; +import org.tmatesoft.svn.core.wc.ISVNPropertyHandler; import org.tmatesoft.svn.core.wc.SVNPropertyData; import org.tmatesoft.svn.core.wc.SVNRevision; @@ -190,4 +193,47 @@ throw new RepositoryException(e); } } + + public static Map<String, String> getAllProperties(File file, + SvnContentManager svnCm) { + final Map<String, String> ret = new HashMap<String, String>(); + try { + svnCm.getClientManager().getWCClient().doGetProperty(file, + null, SVNRevision.WORKING, SVNRevision.WORKING, true, + new ISVNPropertyHandler() { + public void handleProperty(File f, SVNPropertyData data) throws SVNException { + String name = data.getName(); + if (!name.startsWith("svn:")) { + ret.put(name, data.getValue()); + } + } + + public void handleProperty(SVNURL url, + SVNPropertyData data) throws SVNException { } + public void handleProperty(long revision, + SVNPropertyData data) throws SVNException { } + + }); + } catch (SVNException e) { + throw new RepositoryException(e); + } + + return ret; + } + + public static String getParentFullName(SvnResource res) { + // Checking if this isn't the root directory already. + if ("".equals(res.getName())) + return null; + + int lastSlash = res.getFullName().lastIndexOf('/'); + if (lastSlash == -1) { + // No / at all in the path - this resource must be a child of the + // root directory. + return ""; + } else { + // Getting the parent path. + return res.getFullName().substring(0, lastSlash); + } + } } Added: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyDirectoryOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyDirectoryOperation.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyDirectoryOperation.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -0,0 +1,61 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.svn.operations; + +import org.jboss.shotoku.svn.SvnService; +import org.jboss.shotoku.tools.Tools; +import org.tmatesoft.svn.core.SVNException; +import org.tmatesoft.svn.core.io.ISVNEditor; + +/** + * @author Adam Warski (ad...@as...) + */ +public class CopyDirectoryOperation extends ResourceOperation { + private String destParentPath; + private String destPath; + private long lastRevision; + + public CopyDirectoryOperation(String id, String path, String destParentPath, + String destName, long lastRevision) { + super(id, path, OpCode.COPY_DIRECTORY); + + this.destParentPath = destParentPath; + this.lastRevision = lastRevision; + + destPath = Tools.concatenatePaths(destParentPath, + destName); + } + + public void execute(PathsStack stack) throws SVNException { + stack.accomodate(Tools.concatenatePaths(destPath, ""), false); + + ISVNEditor editor = stack.getEditor(); + // When copying, the second argument can't start with a /. + editor.addDir(destPath, path.substring(1), lastRevision); + stack.addPath(destPath, false); + } + + public void addModifiedPaths(SvnService service) { + service.addDirectoryToModfied(id, destParentPath); + service.addDirectoryToModfied(id, destPath); + } +} Added: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyFileOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyFileOperation.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/CopyFileOperation.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -0,0 +1,61 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.svn.operations; + +import org.jboss.shotoku.svn.SvnService; +import org.jboss.shotoku.tools.Tools; +import org.tmatesoft.svn.core.SVNException; +import org.tmatesoft.svn.core.io.ISVNEditor; + +/** + * @author Adam Warski (ad...@as...) + */ +public class CopyFileOperation extends ResourceOperation { + private String destParentPath; + private String destPath; + private long lastRevision; + + public CopyFileOperation(String id, String path, String destParentPath, + String destName, long lastRevision) { + super(id, path, OpCode.COPY_FILE); + + this.destParentPath = destParentPath; + this.lastRevision = lastRevision; + + destPath = Tools.concatenatePaths(destParentPath, + destName); + } + + public void execute(PathsStack stack) throws SVNException { + stack.accomodate(Tools.concatenatePaths(destPath, ""), false); + + ISVNEditor editor = stack.getEditor(); + // When copying, the second argument can't start with a /. + editor.addFile(destPath, path.substring(1), lastRevision); + stack.addPath(destPath, true); + } + + public void addModifiedPaths(SvnService service) { + service.addDirectoryToModfied(id, destParentPath); + service.addNodeToModfied(id, destPath); + } +} Added: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/DeleteOperation.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -0,0 +1,52 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.svn.operations; + +import org.jboss.shotoku.svn.SvnService; +import org.jboss.shotoku.tools.Tools; +import org.tmatesoft.svn.core.SVNException; +import org.tmatesoft.svn.core.io.ISVNEditor; + +/** + * @author Adam Warski (ad...@as...) + */ +public class DeleteOperation extends ResourceOperation { + private String parentPath; + + public DeleteOperation(String id, String path, String parentPath) { + super(id, path, OpCode.DELETE); + + this.parentPath = parentPath; + } + + public void execute(PathsStack stack) throws SVNException { + stack.accomodate(Tools.concatenatePaths(parentPath, ""), true); + + ISVNEditor editor = stack.getEditor(); + editor.deleteEntry(path, -1); + } + + public void addModifiedPaths(SvnService service) { + service.addDirectoryToModfied(id, parentPath); + service.addNodeToModfied(id, path); + } +} Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -33,7 +33,10 @@ ADD_DIRECTORY, ADD_FILE, MODIFY_FILE, - MODIFY_DIRECTORY; + MODIFY_DIRECTORY, + DELETE, + COPY_FILE, + COPY_DIRECTORY; } protected String path; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -56,23 +56,23 @@ "jbf...@jb...", "rO@B5oPfff"); repository.setAuthenticationManager(authManager); - repository.checkPath("", -1); - long latestRevision = -1; latestRevision = repository.getLatestRevision(); System.out.println("Repository latest revision (before committing): " + latestRevision); System.out.println(""); - repository.getFile("history-test.txt", -1, - null, new ByteArrayOutputStream()); + ISVNEditor editor = repository.getCommitEditor("zzz", new WorkspaceMediator()); - /*ISVNEditor editor = repository.getCommitEditor("zzz", new WorkspaceMediator()); - editor.openRoot(-1); - editor.addDir("/test2", null, -1); - editor.addDir("/test2/test3", null, -1);*/ + editor.openDir("/dir1", -1); + editor.addDir("/dircpy", "dir1/dir3", latestRevision); + editor.closeDir(); + editor.closeDir(); + editor.closeDir(); + printCommitInfo(editor.closeEdit()); + /*editor.addFile(filePath, null, -1); editor.applyTextDelta(filePath, null); long deltaLength = data.length; @@ -91,11 +91,6 @@ } editor.textDeltaEnd(filePath); editor.closeFile(filePath, null);*/ - - /*editor.closeDir(); - editor.closeDir(); - editor.closeDir(); - printCommitInfo(editor.closeEdit());*/ } private static void printCommitInfo(SVNCommitInfo commitInfo) { Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-08 19:31:34 UTC (rev 1747) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-08 20:31:17 UTC (rev 1748) @@ -24,6 +24,7 @@ import java.util.Arrays; import java.util.Calendar; import java.util.HashSet; +import java.util.Map; import java.util.Set; import org.jboss.shotoku.ContentManager; @@ -421,7 +422,10 @@ ContentManager.setup(); cm = ContentManager.getContentManager("shotoku-test"); - multiSaveTest(); + Directory d = cm.getDirectory("dir1/dir3"); + d.moveTo(cm.getDirectory("test2/test3"), "yyy"); + + //multiSaveTest(); //testInject(); //testNested(); //addDelDir(); |
From: <jbo...@li...> - 2005-12-08 19:32:07
|
Author: aron.gombas Date: 2005-12-08 14:31:34 -0500 (Thu, 08 Dec 2005) New Revision: 1747 Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/model/JiraProject.java trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp Log: Property "openIssueAssignees" added to JIRA portlet main page Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/model/JiraProject.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/model/JiraProject.java 2005-12-08 19:09:57 UTC (rev 1746) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/model/JiraProject.java 2005-12-08 19:31:34 UTC (rev 1747) @@ -119,6 +119,10 @@ public String getLead() { return lead; } + + public int getOpenIssueAssignees() { + return getOpenIssuesPerAssignee().size(); + } public int getOpenIssues() { return openIssues; Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties 2005-12-08 19:09:57 UTC (rev 1746) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring.properties 2005-12-08 19:31:34 UTC (rev 1747) @@ -7,6 +7,7 @@ jiraproject.projectDetails=Project Details jiraproject.key=Key jiraproject.lead=Lead +jiraproject.assignees=Assignees jiraproject.issueDetails=Issue Details jiraproject.description=Description Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties 2005-12-08 19:09:57 UTC (rev 1746) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_fr.properties 2005-12-08 19:31:34 UTC (rev 1747) @@ -7,6 +7,7 @@ jiraproject.projectDetails=D\u00e9tails du projet jiraproject.key=Cl\u00e9 jiraproject.lead=Responsable +jiraproject.assignees=Assignees_fr jiraproject.issueDetails=D\u00e9tails des demandes jiraproject.description=Description Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties 2005-12-08 19:09:57 UTC (rev 1746) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/jira/jira_monitoring_hu.properties 2005-12-08 19:31:34 UTC (rev 1747) @@ -7,6 +7,7 @@ jiraproject.projectDetails=Projekt Rletesen jiraproject.key=Azonos jiraproject.lead=Vezetiraproject.assignees=Illetsek jiraproject.issueDetails=HibRletesen jiraproject.description=Les Modified: trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp =================================================================== --- trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp 2005-12-08 19:09:57 UTC (rev 1746) +++ trunk/labs/kosmos/web-portlet/pages/jira_monitoring.jsp 2005-12-08 19:31:34 UTC (rev 1747) @@ -24,6 +24,9 @@ </display:column> <display:column titleKey="jiraproject.key" style="white-space:nowrap" property="key" sortable="true"/> <display:column titleKey="jiraproject.lead" style="white-space:nowrap" property="lead" sortable="true"/> + <display:column titleKey="jiraproject.assignees" style="white-space:nowrap" sortProperty="openIssueAssignees" sortable="true"> + <fmt:formatNumber value="${projectsIt.openIssueAssignees}"/> + </display:column> <display:column titleKey="jiraproject.openIssues" style="white-space:nowrap" sortProperty="openIssues" sortable="true"> <c:if test="${projectsIt.openIssues > 10}"><span class="portlet-msg-error"></c:if> <fmt:formatNumber value="${projectsIt.openIssues}"/> |
From: <jbo...@li...> - 2005-12-08 19:10:13
|
Author: aron.gombas Date: 2005-12-08 14:09:57 -0500 (Thu, 08 Dec 2005) New Revision: 1746 Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring.properties trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_fr.properties trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_hu.properties trunk/labs/kosmos/web-portlet/pages/svn_monitoring.jsp Log: "Committers" added to main page of the SVN portlet Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring.properties 2005-12-08 19:09:24 UTC (rev 1745) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring.properties 2005-12-08 19:09:57 UTC (rev 1746) @@ -25,7 +25,7 @@ svnrepository.commitsToday=Commits Today svnrepository.commitsLast7Days=Commits Last 7 Days svnrepository.commitsLast31Days=Commits Last 31 Days -svnrepository.committersTotal=Committers Total +svnrepository.committersTotal=Committers svnrepository.committersToday=Committers Today svnrepository.committersLast7Days=Committers Last 7 Days svnrepository.committersLast31Days=Committers Last 31 Days Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_fr.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_fr.properties 2005-12-08 19:09:24 UTC (rev 1745) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_fr.properties 2005-12-08 19:09:57 UTC (rev 1746) @@ -25,7 +25,7 @@ svnrepository.commitsToday=R\u00e9visions de la journ\u00e9e svnrepository.commitsLast7Days=R\u00e9visions de la semaine svnrepository.commitsLast31Days=R\u00e9visions du mois -svnrepository.committersTotal=Totalit\u00e9 des auteurs +svnrepository.committersTotal=Auteurs svnrepository.committersToday=Auteurs actifs aujourd'hui svnrepository.committersLast7Days=Auteurs actifs cette semaine svnrepository.committersLast31Days=Auteurs actifs ce mois Modified: trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_hu.properties =================================================================== --- trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_hu.properties 2005-12-08 19:09:24 UTC (rev 1745) +++ trunk/labs/kosmos/web-portlet/WEB-INF/classes/hu/midori/kosmos/portlet/svn/svn_monitoring_hu.properties 2005-12-08 19:09:57 UTC (rev 1746) @@ -25,7 +25,7 @@ svnrepository.commitsToday=Msok Ma svnrepository.commitsLast7Days=Msok 7 Nap Sor svnrepository.commitsLast31Days=Msok 31 Nap Sor-svnrepository.committersTotal=Fejlesztsszesen +svnrepository.committersTotal=Fejlesztsvnrepository.committersToday=Fejleszta svnrepository.committersLast7Days=Fejleszt Nap Sor svnrepository.committersLast31Days=Fejleszt1 Nap Sor Modified: trunk/labs/kosmos/web-portlet/pages/svn_monitoring.jsp =================================================================== --- trunk/labs/kosmos/web-portlet/pages/svn_monitoring.jsp 2005-12-08 19:09:24 UTC (rev 1745) +++ trunk/labs/kosmos/web-portlet/pages/svn_monitoring.jsp 2005-12-08 19:09:57 UTC (rev 1746) @@ -29,6 +29,9 @@ <img src="<%= renderRequest.getContextPath() %>/pages/images/info.gif" title="<fmt:message key="svnrepository.revisionDetails"/>" border="0"/> </a> </display:column> + <display:column titleKey="svnrepository.committersTotal" style="white-space:nowrap" sortProperty="committersTotal" sortable="true"> + <fmt:formatNumber value="${repositoriesIt.committersTotal}"/> + </display:column> <display:column titleKey="svnrepository.activityLast7Days" style="white-space:nowrap" sortProperty="activity" sortable="true"> <c:if test="${repositoriesIt.activity < 0.5}"><span class="portlet-msg-error"></c:if> <fmt:formatNumber value="${repositoriesIt.activity}" type="percent" minFractionDigits="1" maxFractionDigits="1"/> |
From: <jbo...@li...> - 2005-12-08 19:09:31
|
Author: aron.gombas Date: 2005-12-08 14:09:24 -0500 (Thu, 08 Dec 2005) New Revision: 1745 Removed: trunk/labs/kosmos/web-server/WEB-INF/lib/jfreechart-1.0.0-rc1.jar Log: Old JFreeChart version removed Deleted: trunk/labs/kosmos/web-server/WEB-INF/lib/jfreechart-1.0.0-rc1.jar =================================================================== (Binary files differ) |
From: <jbo...@li...> - 2005-12-08 18:52:40
|
Author: aron.gombas Date: 2005-12-08 13:50:22 -0500 (Thu, 08 Dec 2005) New Revision: 1744 Added: trunk/labs/kosmos/web-server/WEB-INF/lib/jfreechart-1.0.0.jar Modified: trunk/labs/kosmos/web-server/WEB-INF/lib/spring.jar Log: Upgrading JFreeChart and Spring versions Added: trunk/labs/kosmos/web-server/WEB-INF/lib/jfreechart-1.0.0.jar =================================================================== (Binary files differ) Property changes on: trunk/labs/kosmos/web-server/WEB-INF/lib/jfreechart-1.0.0.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/labs/kosmos/web-server/WEB-INF/lib/spring.jar =================================================================== (Binary files differ) |
From: <jbo...@li...> - 2005-12-08 18:46:31
|
Author: rl...@jb... Date: 2005-12-08 13:46:28 -0500 (Thu, 08 Dec 2005) New Revision: 1743 Removed: trunk/labs/jbossbuild/projects/jboss/build/file1.txt Log: remove Deleted: trunk/labs/jbossbuild/projects/jboss/build/file1.txt =================================================================== --- trunk/labs/jbossbuild/projects/jboss/build/file1.txt 2005-12-08 17:13:51 UTC (rev 1742) +++ trunk/labs/jbossbuild/projects/jboss/build/file1.txt 2005-12-08 18:46:28 UTC (rev 1743) @@ -1,600 +0,0 @@ -/cygdrive/c/j2sdk1.4.2_08/bin/java -classpath c:\maven\maven-2.0/core/boot/classworlds-1.1-alpha-2.jar -Dclassworlds.conf=c:\maven\maven-2.0/bin/m2.conf -Dmaven.home=c:\maven\maven-2.0 org.codehaus.classworlds.Launcher -X compile -+ Error stacktraces are turned on. -[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\ruel\.m2\plugin-registry.xml' -[DEBUG] Building Maven global-level plugin registry from: 'c:\maven\maven-2.0\conf\plugin-registry.xml' -[INFO] Scanning for projects... -[INFO] Reactor build order: -[INFO] Server Project -[INFO] server -[INFO] ---------------------------------------------------------------------------- -[INFO] Building Server Project -[INFO] task-segment: [compile] -[INFO] ---------------------------------------------------------------------------- -[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central -[DEBUG] Retrieving parent-POM from the repository for project: null:maven-resources-plugin:maven-plugin:2.1 -[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central -[DEBUG] Retrieving parent-POM from the repository for project: null:maven-compiler-plugin:maven-plugin:2.0 -[DEBUG] Skipping disabled repository central -[DEBUG] Skipping disabled repository central -[DEBUG] javacc-maven-plugin: using locally installed snapshot -[DEBUG] Retrieving parent-POM from the repository for project: null:javacc-maven-plugin:maven-plugin:0.6.1-SNAPSHOT -[DEBUG] javacc-maven-plugin: using locally installed snapshot -[DEBUG] maven-rmic-plugin: resolved to version 1.0-alpha-1-SNAPSHOT from local repository -[DEBUG] Skipping disabled repository central -[DEBUG] maven-rmic-plugin: using locally installed snapshot -[DEBUG] Retrieving parent-POM from the repository for project: null:maven-rmic-plugin:maven-plugin:1.0-alpha-1-SNAPSHOT -[DEBUG] maven-rmic-plugin: using locally installed snapshot -[DEBUG] artifact-utils: resolved to version 1.1 from local repository -[DEBUG] maven-antrun-plugin: resolved to version 1.0 from repository central -[DEBUG] Retrieving parent-POM from the repository for project: null:maven-antrun-plugin:maven-plugin:1.0 -[DEBUG] org.codehaus.mojo:javacc-maven-plugin:maven-plugin:0.6.1-SNAPSHOT (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.1 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] junit:junit:jar:3.8.1 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: null:maven-project:jar:2.0 -[DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0 -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-model:jar:2.0 -[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0 -[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0 -[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0 -[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: plexus:plexus-utils:jar:1.0.1 -[DEBUG] plexus:plexus-utils:jar:1.0.1 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0-beta-1 -[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0-beta-1 (selected for runtime) -[DEBUG] javacc:javacc:jar:3.2 (selected for runtime) -[DEBUG] Configuring mojo 'org.codehaus.mojo:javacc-maven-plugin:0.6.1-SNAPSHOT:jjtree' --> -[DEBUG] (f) jjFile = JBossQLParser.jjt -[DEBUG] (f) outputDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) project = org.apache.maven.project.MavenProject@6185a774 -[DEBUG] (f) sourceDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) staleMillis = 0 -[DEBUG] (f) timestampDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server/target -[DEBUG] -- end configuration -- -[INFO] [javacc:jjtree {execution: jjtree}] -[INFO] Generating grammar for single file: JBossQLParser.jjt -[DEBUG] argslist: [-OUTPUT_DIRECTORY=c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql, c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main\org\jboss\ejb\plugins\cmp\ejbql\JBossQLParser.jjt] -Java Compiler Compiler Version 3.2 (Tree Builder) -(type "jjtree" with no arguments for help) -Reading from file c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main\org\jboss\ejb\plugins\cmp\ejbql\JBossQLParser.jjt . . . -Annotated grammar generated successfully in c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql\JBossQLParser.jj -[DEBUG] Configuring mojo 'org.codehaus.mojo:javacc-maven-plugin:0.6.1-SNAPSHOT:javacc' --> -[DEBUG] (f) ccFile = JBossQLParser.jj -[DEBUG] (f) outputDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) project = org.apache.maven.project.MavenProject@6185a774 -[DEBUG] (f) sourceDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) staleMillis = 0 -[DEBUG] (f) timestampDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server/target -[DEBUG] -- end configuration -- -[INFO] [javacc:javacc {execution: javacc1}] -[INFO] Generating java for single file: JBossQLParser.jj -[DEBUG] argslist: [-OUTPUT_DIRECTORY:c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql, c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql\JBossQLParser.jj] -Java Compiler Compiler Version 3.2 (Parser Generator) -(type "javacc" with no arguments for help) -Reading from file c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql\JBossQLParser.jj . . . -Parser generated with 0 errors and 2 warnings. -[DEBUG] Configuring mojo 'org.codehaus.mojo:javacc-maven-plugin:0.6.1-SNAPSHOT:jjtree' --> -[DEBUG] (f) jjFile = EJBQLParser.jjt -[DEBUG] (f) outputDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) project = org.apache.maven.project.MavenProject@6185a774 -[DEBUG] (f) sourceDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) staleMillis = 0 -[DEBUG] (f) timestampDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server/target -[DEBUG] -- end configuration -- -[INFO] [javacc:jjtree {execution: jjtree-ejblq}] -[INFO] Generating grammar for single file: EJBQLParser.jjt -[DEBUG] argslist: [-OUTPUT_DIRECTORY=c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql, c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main\org\jboss\ejb\plugins\cmp\ejbql\EJBQLParser.jjt] -Java Compiler Compiler Version 3.2 (Tree Builder) -(type "jjtree" with no arguments for help) -Reading from file c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main\org\jboss\ejb\plugins\cmp\ejbql\EJBQLParser.jjt . . . -Annotated grammar generated successfully in c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql\EJBQLParser.jj -[DEBUG] Configuring mojo 'org.codehaus.mojo:javacc-maven-plugin:0.6.1-SNAPSHOT:javacc' --> -[DEBUG] (f) ccFile = EJBQLParser.jj -[DEBUG] (f) outputDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) project = org.apache.maven.project.MavenProject@6185a774 -[DEBUG] (f) sourceDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql -[DEBUG] (f) staleMillis = 0 -[DEBUG] (f) timestampDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server/target -[DEBUG] -- end configuration -- -[INFO] [javacc:javacc {execution: javacc2}] -[INFO] Generating java for single file: EJBQLParser.jj -[DEBUG] argslist: [-OUTPUT_DIRECTORY:c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql, c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql\EJBQLParser.jj] -Java Compiler Compiler Version 3.2 (Parser Generator) -(type "javacc" with no arguments for help) -Reading from file c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql\EJBQLParser.jj . . . -Parser generated with 0 errors and 2 warnings. -[DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1 (selected for runtime) -[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] junit:junit:jar:3.8.1 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) -[DEBUG] commons-io:commons-io:jar:1.0 (selected for runtime) -[DEBUG] junit:junit:jar:3.8.1 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0 -[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime) -[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.1:resources' --> -[DEBUG] (f) filters = [] -[DEBUG] (f) outputDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[DEBUG] (f) project = org.apache.maven.project.MavenProject@6185a774 -[DEBUG] (f) resources = [org.apache.maven.model.Resource@ab444] -[DEBUG] -- end configuration -- -[INFO] [resources:resources] -[INFO] Using default encoding to copy filtered resources. -[DEBUG] org.jboss.server.transaction:jboss-server:jar:5.0-SNAPSHOT (selected for null) -[DEBUG] Skipping disabled repository central -[DEBUG] jboss-common: using locally installed snapshot -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] gnu-regexp:gnu-regexp:jar:1.1.14 (selected for compile) -[DEBUG] apache-xerces:xml-apis:jar:2.7.0 (selected for compile) -[DEBUG] dom4j:dom4j:jar:1.5 (selected for compile) -[DEBUG] dom4j:dom4j:jar:1.5.2 (removed - causes a cycle in the graph) -[DEBUG] jaxen:jaxen:jar:1.1-beta-4 (selected for compile) -[DEBUG] apache-log4j:snmpTrapAppender:jar:1.2.8 (selected for compile) -[DEBUG] apache-xerces:xercesImpl:jar:2.7.0 (selected for compile) -[DEBUG] apache-log4j:log4j:jar:1.2.8 (selected for compile) -[DEBUG] apache-xerces:resolver:jar:2.7.0 (selected for compile) -[DEBUG] apache-jaxme:jaxmexs:jar:0.2-cvs (selected for compile) -[DEBUG] apache-httpclient:commons-httpclient:jar:2.0 (selected for compile) -[DEBUG] oswego-concurrent:concurrent:jar:1.3.4 (selected for compile) -[DEBUG] apache-slide:webdavlib:jar:2.0 (selected for compile) -[DEBUG] wutka-dtdparser:dtdparser121:jar:1.2.1 (selected for compile) -[DEBUG] Skipping disabled repository central -[DEBUG] jnpserver: using locally installed snapshot -[DEBUG] org.jboss.server.naming:jnpserver:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] junit:junit:jar:3.8.1 (selected for compile) -[DEBUG] Skipping disabled repository central -[DEBUG] jboss-remoting: using locally installed snapshot -[DEBUG] Skipping disabled repository central -[DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository - jboss-remoting:jboss-remoting:SNAPSHOT:pom - -from the specified remote repositories: - central (http://repo1.maven.org/maven2) - -[DEBUG] Using defaults for missing POM jboss-remoting:jboss-remoting:pom:SNAPSHOT -[DEBUG] jboss-remoting:jboss-remoting:jar:SNAPSHOT (selected for compile) -[DEBUG] Skipping disabled repository central -[DEBUG] jboss-system: using locally installed snapshot -[DEBUG] org.jboss.server.system:jboss-system:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] Skipping disabled repository central -[DEBUG] jboss-mbeans: using locally installed snapshot -[DEBUG] org.jboss.server.mbeans:jboss-mbeans:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] bcel:bcel:jar:5.1 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] Skipping disabled repository central -[DEBUG] jboss-j2se: using locally installed snapshot -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] junit:junit:jar:3.8.1 (selected for compile) -[DEBUG] Trying repository central -Downloading: http://repo1.maven.org/maven2/gnu-getopt/getopt/1.0.10/getopt-1.0.10.pom -[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) -[DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository - gnu-getopt:getopt:1.0.10:pom - -from the specified remote repositories: - central (http://repo1.maven.org/maven2) - -[DEBUG] Using defaults for missing POM gnu-getopt:getopt:pom:1.0.10 -[DEBUG] gnu-getopt:getopt:jar:1.0.10 (selected for compile) -[DEBUG] Trying repository central -Downloading: http://repo1.maven.org/maven2/jpl-util/jpl-util/1.0/jpl-util-1.0.pom -[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) -[DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository - jpl-util:jpl-util:1.0:pom - -from the specified remote repositories: - central (http://repo1.maven.org/maven2) - -[DEBUG] Using defaults for missing POM jpl-util:jpl-util:pom:1.0 -[DEBUG] jpl-util:jpl-util:jar:1.0 (selected for compile) -[DEBUG] Trying repository central -Downloading: http://repo1.maven.org/maven2/jpl-pattern/jpl-pattern/1.0/jpl-pattern-1.0.pom -[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) -[DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository - jpl-pattern:jpl-pattern:1.0:pom - -from the specified remote repositories: - central (http://repo1.maven.org/maven2) - -[DEBUG] Using defaults for missing POM jpl-pattern:jpl-pattern:pom:1.0 -[DEBUG] jpl-pattern:jpl-pattern:jar:1.0 (selected for compile) -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] junit:junit:jar:3.8.1 (selected for compile) -[DEBUG] Skipping disabled repository central -[DEBUG] jboss-transaction: using locally installed snapshot -[DEBUG] org.jboss.server.transaction:jboss-transaction:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] jboss-remoting:jboss-remoting:jar:SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.system:jboss-system:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] Skipping disabled repository central -[DEBUG] jboss-j2ee: using locally installed snapshot -[DEBUG] org.jboss.server.j2ee:jboss-j2ee:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-jaf:activation:jar:1.2.4 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-servlet-jsp:jsp-api:jar:2.4 (selected for compile) -[DEBUG] sun-servlet:servlet-api:jar:2.4 (selected for compile) -[DEBUG] org.jboss.server.j2ee:jboss-j2ee:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-jaf:activation:jar:1.2.4 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-servlet-jsp:jsp-api:jar:2.4 (selected for compile) -[DEBUG] sun-servlet:servlet-api:jar:2.4 (selected for compile) -[DEBUG] org.jboss.server.mbeans:jboss-mbeans:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] bcel:bcel:jar:5.1 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] wsdl4j:wsdl4j:jar:1.5.1 (selected for compile) -[DEBUG] jboss-j2se: using locally installed snapshot -[DEBUG] jboss-system: using locally installed snapshot -[DEBUG] jboss-transaction: using locally installed snapshot -[DEBUG] jnpserver: using locally installed snapshot -[DEBUG] jboss-j2ee: using locally installed snapshot -[DEBUG] jboss-mbeans: using locally installed snapshot -[DEBUG] jboss-common: using locally installed snapshot -[DEBUG] jboss-remoting: using locally installed snapshot -[DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.1 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] junit:junit:jar:3.8.1 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.5.1 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.1 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.5.1 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.1 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0:compile' --> -[DEBUG] (f) basedir = c:\projects\maven-jboss-head\jboss-head\build\..\server -[DEBUG] (f) buildDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\target -[DEBUG] (f) classpathElements = [c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes, C:\Documents and Settings\ruel\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar, C:\Documents and Settings\ruel\.m2\repository\apache-log4j\snmpTrapAppender\1.2.8\snmpTrapAppender-1.2.8.jar, C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\system\jboss-system\5.0-SNAPSHOT\jboss-system-5.0-SNAPSHOT.jar, C:\Documents and Settings\ruel\.m2\repository\apache-xerces\resolver\2.7.0\resolver-2.7.0.jar, C:\Documents and Settings\ruel\.m2\repository\apache-jaxme\jaxmexs\0.2-cvs\jaxmexs-0.2-cvs.jar, C:\Documents and Settings\ruel\.m2\repository\sun-servlet-jsp\jsp-api\2.4\jsp-api-2.4.jar, C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\transaction\jboss-transaction\5.0-SNAPSHOT\jboss-transaction-5.0-SNAPSHOT.jar, C:\Documents and Settings\ruel\.m2\repository\sun-servlet\servlet-api\2.4\servlet-api-2.4.jar, C:\Documents and Settings\ruel\.m2\repositor! y\wutka-dtdparser\dtdparser121\1.2.1\dtdparser121-1.2.1.jar, C:\Documents and Settings\ruel\.m2\repository\gnu-regexp\gnu-regexp\1.1.14\gnu-regexp-1.1.14.jar, C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\common\jboss-common\5.0-SNAPSHOT\jboss-common-5.0-SNAPSHOT.jar, C:\Documents and Settings\ruel\.m2\repository\dom4j\dom4j\1.5\dom4j-1.5.jar, C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xercesImpl\2.7.0\xercesImpl-2.7.0.jar, C:\Documents and Settings\ruel\.m2\repository\jaxen\jaxen\1.1-beta-4\jaxen-1.1-beta-4.jar, C:\Documents and Settings\ruel\.m2\repository\jpl-pattern\jpl-pattern\1.0\jpl-pattern-1.0.jar, C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2se\jboss-j2se\5.0-SNAPSHOT\jboss-j2se-5.0-SNAPSHOT.jar, C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xml-apis\2.7.0\xml-apis-2.7.0.jar, C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\naming\jnpserver\5.0-SNAPSHOT\jnpserver-5.0-SNAPSHOT.jar, C:\! Documents and Settings\ruel\.m2\repository\apache-log4j\log4j\1.2.8\lo g4j-1.2.8.jar, C:\Documents and Settings\ruel\.m2\repository\oswego-concurrent\concurrent\1.3.4\concurrent-1.3.4.jar, C:\Documents and Settings\ruel\.m2\repository\apache-slide\webdavlib\2.0\webdavlib-2.0.jar, C:\Documents and Settings\ruel\.m2\repository\jboss-remoting\jboss-remoting\SNAPSHOT\jboss-remoting-SNAPSHOT.jar, C:\Documents and Settings\ruel\.m2\repository\gnu-getopt\getopt\1.0.10\getopt-1.0.10.jar, C:\Documents and Settings\ruel\.m2\repository\jpl-util\jpl-util\1.0\jpl-util-1.0.jar, C:\Documents and Settings\ruel\.m2\repository\bcel\bcel\5.1\bcel-5.1.jar, C:\Documents and Settings\ruel\.m2\repository\apache-httpclient\commons-httpclient\2.0\commons-httpclient-2.0.jar, C:\Documents and Settings\ruel\.m2\repository\sun-jaf\activation\1.2.4\activation-1.2.4.jar, C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar, C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\mbeans\jboss-mbeans\5.0! -SNAPSHOT\jboss-mbeans-5.0-SNAPSHOT.jar, C:\Documents and Settings\ruel\.m2\repository\wsdl4j\wsdl4j\1.5.1\wsdl4j-1.5.1.jar] -[DEBUG] (f) compileSourceRoots = [c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main, c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql] -[DEBUG] (f) compilerId = javac -[DEBUG] (f) debug = true -[DEBUG] (f) excludes = [org/jboss/webservice/metadata/*.java] -[DEBUG] (f) fork = false -[DEBUG] (f) optimize = false -[DEBUG] (f) outputDirectory = c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[DEBUG] (f) outputFileName = jboss-server-5.0-SNAPSHOT -[DEBUG] (f) projectArtifact = org.jboss.server.transaction:jboss-server:jar:5.0-SNAPSHOT -[DEBUG] (f) staleMillis = 0 -[DEBUG] (f) verbose = true -[DEBUG] -- end configuration -- -[INFO] [compiler:compile] -[DEBUG] Using compiler 'javac'. -[DEBUG] Source directories: [c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main - c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql] -[DEBUG] Classpath: [c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes - C:\Documents and Settings\ruel\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar - C:\Documents and Settings\ruel\.m2\repository\apache-log4j\snmpTrapAppender\1.2.8\snmpTrapAppender-1.2.8.jar - C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\system\jboss-system\5.0-SNAPSHOT\jboss-system-5.0-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\apache-xerces\resolver\2.7.0\resolver-2.7.0.jar - C:\Documents and Settings\ruel\.m2\repository\apache-jaxme\jaxmexs\0.2-cvs\jaxmexs-0.2-cvs.jar - C:\Documents and Settings\ruel\.m2\repository\sun-servlet-jsp\jsp-api\2.4\jsp-api-2.4.jar - C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\transaction\jboss-transaction\5.0-SNAPSHOT\jboss-transaction-5.0-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\sun-servlet\servlet-api\2.4\servlet-api-2.4.jar - C:\Documents and Settings\ruel\.m2\repository\wutka-dtdparser\dtdparser121\1.2.1\dtdparser121-1.2.1.jar - C:\Documents and Settings\ruel\.m2\repository\gnu-regexp\gnu-regexp\1.1.14\gnu-regexp-1.1.14.jar - C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\common\jboss-common\5.0-SNAPSHOT\jboss-common-5.0-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\dom4j\dom4j\1.5\dom4j-1.5.jar - C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xercesImpl\2.7.0\xercesImpl-2.7.0.jar - C:\Documents and Settings\ruel\.m2\repository\jaxen\jaxen\1.1-beta-4\jaxen-1.1-beta-4.jar - C:\Documents and Settings\ruel\.m2\repository\jpl-pattern\jpl-pattern\1.0\jpl-pattern-1.0.jar - C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2se\jboss-j2se\5.0-SNAPSHOT\jboss-j2se-5.0-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xml-apis\2.7.0\xml-apis-2.7.0.jar - C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\naming\jnpserver\5.0-SNAPSHOT\jnpserver-5.0-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\apache-log4j\log4j\1.2.8\log4j-1.2.8.jar - C:\Documents and Settings\ruel\.m2\repository\oswego-concurrent\concurrent\1.3.4\concurrent-1.3.4.jar - C:\Documents and Settings\ruel\.m2\repository\apache-slide\webdavlib\2.0\webdavlib-2.0.jar - C:\Documents and Settings\ruel\.m2\repository\jboss-remoting\jboss-remoting\SNAPSHOT\jboss-remoting-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\gnu-getopt\getopt\1.0.10\getopt-1.0.10.jar - C:\Documents and Settings\ruel\.m2\repository\jpl-util\jpl-util\1.0\jpl-util-1.0.jar - C:\Documents and Settings\ruel\.m2\repository\bcel\bcel\5.1\bcel-5.1.jar - C:\Documents and Settings\ruel\.m2\repository\apache-httpclient\commons-httpclient\2.0\commons-httpclient-2.0.jar - C:\Documents and Settings\ruel\.m2\repository\sun-jaf\activation\1.2.4\activation-1.2.4.jar - C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\mbeans\jboss-mbeans\5.0-SNAPSHOT\jboss-mbeans-5.0-SNAPSHOT.jar - C:\Documents and Settings\ruel\.m2\repository\wsdl4j\wsdl4j\1.5.1\wsdl4j-1.5.1.jar] -[DEBUG] Output directory: c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[DEBUG] Classpath: -[DEBUG] c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-log4j\snmpTrapAppender\1.2.8\snmpTrapAppender-1.2.8.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\system\jboss-system\5.0-SNAPSHOT\jboss-system-5.0-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-xerces\resolver\2.7.0\resolver-2.7.0.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-jaxme\jaxmexs\0.2-cvs\jaxmexs-0.2-cvs.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\sun-servlet-jsp\jsp-api\2.4\jsp-api-2.4.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\transaction\jboss-transaction\5.0-SNAPSHOT\jboss-transaction-5.0-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\sun-servlet\servlet-api\2.4\servlet-api-2.4.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\wutka-dtdparser\dtdparser121\1.2.1\dtdparser121-1.2.1.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\gnu-regexp\gnu-regexp\1.1.14\gnu-regexp-1.1.14.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\common\jboss-common\5.0-SNAPSHOT\jboss-common-5.0-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\dom4j\dom4j\1.5\dom4j-1.5.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xercesImpl\2.7.0\xercesImpl-2.7.0.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\jaxen\jaxen\1.1-beta-4\jaxen-1.1-beta-4.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\jpl-pattern\jpl-pattern\1.0\jpl-pattern-1.0.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2se\jboss-j2se\5.0-SNAPSHOT\jboss-j2se-5.0-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xml-apis\2.7.0\xml-apis-2.7.0.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\naming\jnpserver\5.0-SNAPSHOT\jnpserver-5.0-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-log4j\log4j\1.2.8\log4j-1.2.8.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\oswego-concurrent\concurrent\1.3.4\concurrent-1.3.4.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-slide\webdavlib\2.0\webdavlib-2.0.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\jboss-remoting\jboss-remoting\SNAPSHOT\jboss-remoting-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\gnu-getopt\getopt\1.0.10\getopt-1.0.10.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\jpl-util\jpl-util\1.0\jpl-util-1.0.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\bcel\bcel\5.1\bcel-5.1.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\apache-httpclient\commons-httpclient\2.0\commons-httpclient-2.0.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\sun-jaf\activation\1.2.4\activation-1.2.4.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\mbeans\jboss-mbeans\5.0-SNAPSHOT\jboss-mbeans-5.0-SNAPSHOT.jar -[DEBUG] C:\Documents and Settings\ruel\.m2\repository\wsdl4j\wsdl4j\1.5.1\wsdl4j-1.5.1.jar -[DEBUG] Source roots: -[DEBUG] c:\projects\maven-jboss-head\jboss-head\build\..\server\src\main -[DEBUG] c:\projects\maven-jboss-head\jboss-head\build\..\server\target\gensrc\org\jboss\ejb\plugins\cmp\ejbql -Compiling 692 source files to c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[DEBUG] org.jboss.server.transaction:jboss-server:jar:5.0-SNAPSHOT (selected for null) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] gnu-regexp:gnu-regexp:jar:1.1.14 (selected for compile) -[DEBUG] apache-xerces:xml-apis:jar:2.7.0 (selected for compile) -[DEBUG] dom4j:dom4j:jar:1.5 (selected for compile) -[DEBUG] dom4j:dom4j:jar:1.5.2 (removed - causes a cycle in the graph) -[DEBUG] jaxen:jaxen:jar:1.1-beta-4 (selected for compile) -[DEBUG] apache-log4j:snmpTrapAppender:jar:1.2.8 (selected for compile) -[DEBUG] apache-xerces:xercesImpl:jar:2.7.0 (selected for compile) -[DEBUG] apache-log4j:log4j:jar:1.2.8 (selected for compile) -[DEBUG] apache-xerces:resolver:jar:2.7.0 (selected for compile) -[DEBUG] apache-jaxme:jaxmexs:jar:0.2-cvs (selected for compile) -[DEBUG] apache-httpclient:commons-httpclient:jar:2.0 (selected for compile) -[DEBUG] oswego-concurrent:concurrent:jar:1.3.4 (selected for compile) -[DEBUG] apache-slide:webdavlib:jar:2.0 (selected for compile) -[DEBUG] wutka-dtdparser:dtdparser121:jar:1.2.1 (selected for compile) -[DEBUG] org.jboss.server.naming:jnpserver:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] junit:junit:jar:3.8.1 (selected for compile) -[DEBUG] jboss-remoting:jboss-remoting:jar:SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.system:jboss-system:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.mbeans:jboss-mbeans:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] bcel:bcel:jar:5.1 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] junit:junit:jar:3.8.1 (selected for compile) -[DEBUG] gnu-getopt:getopt:jar:1.0.10 (selected for compile) -[DEBUG] jpl-util:jpl-util:jar:1.0 (selected for compile) -[DEBUG] jpl-pattern:jpl-pattern:jar:1.0 (selected for compile) -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] junit:junit:jar:3.8.1 (selected for compile) -[DEBUG] org.jboss.server.transaction:jboss-transaction:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] jboss-remoting:jboss-remoting:jar:SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.system:jboss-system:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.j2ee:jboss-j2ee:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-jaf:activation:jar:1.2.4 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-servlet-jsp:jsp-api:jar:2.4 (selected for compile) -[DEBUG] sun-servlet:servlet-api:jar:2.4 (selected for compile) -[DEBUG] org.jboss.server.j2ee:jboss-j2ee:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-jaf:activation:jar:1.2.4 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] sun-servlet-jsp:jsp-api:jar:2.4 (selected for compile) -[DEBUG] sun-servlet:servlet-api:jar:2.4 (selected for compile) -[DEBUG] org.jboss.server.mbeans:jboss-mbeans:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] bcel:bcel:jar:5.1 (selected for compile) -[DEBUG] org.jboss.server.common:jboss-common:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] org.jboss.server.j2se:jboss-j2se:jar:5.0-SNAPSHOT (selected for compile) -[DEBUG] wsdl4j:wsdl4j:jar:1.5.1 (selected for compile) -[DEBUG] org.apache.maven.plugins:maven-rmic-plugin:maven-plugin:1.0-alpha-1-SNAPSHOT (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: plexus:plexus-archiver:jar:1.0-alpha-1 -[DEBUG] Retrieving parent-POM from the repository for project: plexus:plexus-components:pom:1.0 -[DEBUG] plexus:plexus-archiver:jar:1.0-alpha-1 (selected for runtime) -[DEBUG] plexus:plexus-container-default:jar:1.0-alpha-2 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: null:maven-archiver:jar:2.0 -[DEBUG] org.apache.maven:maven-archiver:jar:2.0 (selected for runtime) -[DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] junit:junit:jar:3.8.1 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) -[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) -[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: plexus:plexus-container-default:jar:null -[DEBUG] Retrieving parent-POM from the repository for project: plexus:plexus-containers:pom:1.0-alpha-3 -[DEBUG] plexus:plexus-container-default:jar:1.0-alpha-2 (removed - nearer found: 1.0-alpha-3) -[DEBUG] plexus:plexus-container-default:jar:1.0-alpha-3 (selected for runtime) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (removed - nearer found: 1.1-alpha-1) -[DEBUG] classworlds:classworlds:jar:1.1-alpha-1 (selected for runtime) -[DEBUG] junit:junit:jar:3.8.1 (selected for runtime) -[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0-alpha-3 -[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0-alpha-3 (selected for runtime) -[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-rmic-plugin:1.0-alpha-1-SNAPSHOT:process-classes' --> -[DEBUG] (f) classPath = c:\projects\maven-jboss-head\jboss-head\build\..\server/output/classes -[DEBUG] (f) classes = c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[DEBUG] (f) compilerId = sun -[DEBUG] (f) debug = false -[DEBUG] (f) idl = false -[DEBUG] (f) iiop = false -[DEBUG] (f) outputClasses = c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[DEBUG] (f) project = org.apache.maven.project.MavenProject@6185a774 -[DEBUG] (f) remoteClasses = [org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl, org.jboss.tm.usertx.server.UserTransactionSessionImpl] -[DEBUG] (f) stubversion = 1.2 -[DEBUG] (f) verify = false -[DEBUG] -- end configuration -- -[INFO] [rmic:process-classes {execution: default}] -[INFO] rmic arguments: -[INFO] -classpath -[INFO] c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes;c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes;C:\Documents and Settings\ruel\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Documents and Settings\ruel\.m2\repository\apache-log4j\snmpTrapAppender\1.2.8\snmpTrapAppender-1.2.8.jar;C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\system\jboss-system\5.0-SNAPSHOT\jboss-system-5.0-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\apache-xerces\resolver\2.7.0\resolver-2.7.0.jar;C:\Documents and Settings\ruel\.m2\repository\apache-jaxme\jaxmexs\0.2-cvs\jaxmexs-0.2-cvs.jar;C:\Documents and Settings\ruel\.m2\repository\sun-servlet-jsp\jsp-api\2.4\jsp-api-2.4.jar;C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\transaction\jboss-transaction\5.0-SNAPSHOT\jboss-transaction-5.0-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\sun-servlet\servlet-api\2.4\servlet-api-2.4.jar;C:\Documen! ts and Settings\ruel\.m2\repository\wutka-dtdparser\dtdparser121\1.2.1\dtdparser121-1.2.1.jar;C:\Documents and Settings\ruel\.m2\repository\gnu-regexp\gnu-regexp\1.1.14\gnu-regexp-1.1.14.jar;C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\common\jboss-common\5.0-SNAPSHOT\jboss-common-5.0-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\dom4j\dom4j\1.5\dom4j-1.5.jar;C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xercesImpl\2.7.0\xercesImpl-2.7.0.jar;C:\Documents and Settings\ruel\.m2\repository\jaxen\jaxen\1.1-beta-4\jaxen-1.1-beta-4.jar;C:\Documents and Settings\ruel\.m2\repository\jpl-pattern\jpl-pattern\1.0\jpl-pattern-1.0.jar;C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2se\jboss-j2se\5.0-SNAPSHOT\jboss-j2se-5.0-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\naming\jnpserver\5.0-SNAPSHOT\jnpserver-5.0-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\apache-xerces\xml-apis\2.7.! 0\xml-apis-2.7.0.jar;C:\Documents and Settings\ruel\.m2\repository\apa che-log4j\log4j\1.2.8\log4j-1.2.8.jar;C:\Documents and Settings\ruel\.m2\repository\oswego-concurrent\concurrent\1.3.4\concurrent-1.3.4.jar;C:\Documents and Settings\ruel\.m2\repository\apache-slide\webdavlib\2.0\webdavlib-2.0.jar;C:\Documents and Settings\ruel\.m2\repository\jboss-remoting\jboss-remoting\SNAPSHOT\jboss-remoting-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\gnu-getopt\getopt\1.0.10\getopt-1.0.10.jar;C:\Documents and Settings\ruel\.m2\repository\apache-httpclient\commons-httpclient\2.0\commons-httpclient-2.0.jar;C:\Documents and Settings\ruel\.m2\repository\jpl-util\jpl-util\1.0\jpl-util-1.0.jar;C:\Documents and Settings\ruel\.m2\repository\bcel\bcel\5.1\bcel-5.1.jar;C:\Documents and Settings\ruel\.m2\repository\sun-jaf\activation\1.2.4\activation-1.2.4.jar;C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\mbeans\jb! oss-mbeans\5.0-SNAPSHOT\jboss-mbeans-5.0-SNAPSHOT.jar;C:\Documents and Settings\ruel\.m2\repository\wsdl4j\wsdl4j\1.5.1\wsdl4j-1.5.1.jar; -[INFO] -d -[INFO] c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes -[INFO] -verbose -[INFO] -v1.2 -[INFO] org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl -[INFO] org.jboss.tm.usertx.server.UserTransactionSessionImpl -[loaded c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionImpl.class in 31 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Object.class) in 0 ms] -[loaded c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\interfaces\UserTransactionSession.class in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/Remote.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/RemoteException.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/io/IOException.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Exception.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Throwable.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/io/Serializable.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/SecurityException.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/RuntimeException.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/IllegalStateException.class) in 0 ms] -[loaded C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar(javax/transaction/SystemException.class) in 0 ms] -[loaded C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar(javax/transaction/RollbackException.class) in 0 ms] -[loaded C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar(javax/transaction/HeuristicMixedException.class) in 0 ms] -[loaded C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar(javax/transaction/HeuristicRollbackException.class) in 0 ms] -[loaded C:\Documents and Settings\ruel\.m2\repository\org\jboss\server\j2ee\jboss-j2ee\5.0-SNAPSHOT\jboss-j2ee-5.0-SNAPSHOT.jar(javax/transaction/NotSupportedException.class) in 0 ms] -[found remote interface: org.jboss.tm.usertx.interfaces.UserTransactionSession] -[string used for method hash: "destroy()V"] -[string used for method hash: "begin(I)Ljava/lang/Object;"] -[string used for method hash: "commit(Ljava/lang/Object;)V"] -[string used for method hash: "rollback(Ljava/lang/Object;)V"] -[string used for method hash: "setRollbackOnly(Ljava/lang/Object;)V"] -[string used for method hash: "getStatus(Ljava/lang/Object;)I"] -[found remote method <0>: java.lang.Object begin(int) throws java.rmi.RemoteException, javax.transaction.NotSupportedException, javax.transaction.SystemException] -[found remote method <1>: void commit(java.lang.Object) throws java.rmi.RemoteException, javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, java.lang.IllegalStateException, javax.transaction.SystemException] -[found remote method <2>: void destroy() throws java.rmi.RemoteException] -[found remote method <3>: int getStatus(java.lang.Object) throws java.rmi.RemoteException, javax.transaction.SystemException] -[found remote method <4>: void rollback(java.lang.Object) throws java.rmi.RemoteException, java.lang.SecurityException, java.lang.IllegalStateException, javax.transaction.SystemException] -[found remote method <5>: void setRollbackOnly(java.lang.Object) throws java.rmi.RemoteException, java.lang.IllegalStateException, javax.transaction.SystemException] -[wrote c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionImpl_Stub.java] -[parsed c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionImpl_Stub.java in 125 ms] -[loaded c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionFactoryImpl.class in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/server/UnicastRemoteObject.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/server/RemoteServer.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/server/RemoteObject.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/CloneNotSupportedException.class) in 0 ms] -[loaded c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\interfaces\UserTransactionSessionFactory.class in 0 ms] -[found remote interface: org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory] -[found remote interface: java.rmi.Remote] -[string used for method hash: "newInstance()Lorg/jboss/tm/usertx/interfaces/UserTransactionSession;"] -[found remote method <0>: org.jboss.tm.usertx.interfaces.UserTransactionSession newInstance() throws java.rmi.RemoteException] -[wrote c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionFactoryImpl_Stub.java] -[parsed c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionFactoryImpl_Stub.java in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/server/RemoteStub.class) in 0 ms] -[checking class org.jboss.tm.usertx.server.UserTransactionSessionImpl_Stub] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/reflect/Method.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/reflect/AccessibleObject.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/reflect/Member.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Class.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Class$MethodArray.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Integer.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Number.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Comparable.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/NoSuchMethodException.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/NoSuchMethodError.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/IncompatibleClassChangeError.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/LinkageError.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/Error.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/server/RemoteRef.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/io/Externalizable.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/rmi/UnexpectedException.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/String.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/CharSequence.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/ClassNotFoundException.class) in 0 ms] -[loaded c:\j2sdk1.4.2_08\jre\lib\rt.jar(java/lang/NoClassDefFoundError.class) in 0 ms] -[wrote c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionImpl_Stub.class] -[checking class org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl_Stub] -[wrote c:\projects\maven-jboss-head\jboss-head\build\..\server\output\classes\org\jboss\tm\usertx\server\UserTransactionSessionFactoryImpl_Stub.class] -[done in 640 ms] -[INFO] RMIC completed. -[INFO] ---------------------------------------------------------------------------- -[INFO] Building server -[INFO] task-segment: [compile] -[INFO] ---------------------------------------------------------------------------- -[INFO] No goals needed for project - skipping -[INFO] -[INFO] -[INFO] ---------------------------------------------------------------------------- -[INFO] Reactor Summary: -[INFO] ---------------------------------------------------------------------------- -[INFO] Server Project ......................................... SUCCESS [26.671s] -[INFO] server ................................................. SUCCESS [0.016s] -[INFO] ---------------------------------------------------------------------------- -[INFO] ---------------------------------------------------------------------------- -[INFO] BUILD SUCCESSFUL -[INFO] ---------------------------------------------------------------------------- -[INFO] Total time: 27 seconds -[INFO] Finished at: Tue Dec 06 15:13:42 CST 2005 -[INFO] Final Memory: 8M/56M -[INFO] ---------------------------------------------------------------------------- |
From: <jbo...@li...> - 2005-12-08 17:14:10
|
Author: aron.gombas Date: 2005-12-08 12:13:51 -0500 (Thu, 08 Dec 2005) New Revision: 1742 Modified: trunk/labs/kosmos/xdocs/reference/reference-manual.xml Log: LGPL text added to the manual Modified: trunk/labs/kosmos/xdocs/reference/reference-manual.xml =================================================================== --- trunk/labs/kosmos/xdocs/reference/reference-manual.xml 2005-12-08 16:57:38 UTC (rev 1741) +++ trunk/labs/kosmos/xdocs/reference/reference-manual.xml 2005-12-08 17:13:51 UTC (rev 1742) @@ -1710,5 +1710,472 @@ </chapter> + <appendix id="kosmos-copyright"> + <title>Copyright</title> + + <simplesect> + <programlisting> + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + </programlisting> + </simplesect> + </appendix> + </book> |
From: <jbo...@li...> - 2005-12-08 16:57:48
|
Author: aron.gombas Date: 2005-12-08 11:57:38 -0500 (Thu, 08 Dec 2005) New Revision: 1741 Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java trunk/labs/kosmos/src/java/hu/midori/kosmos/server/jira/JiraServiceImpl.java trunk/labs/kosmos/src/java/hu/midori/kosmos/server/sf/SfServiceImpl.java trunk/labs/kosmos/src/java/hu/midori/kosmos/server/svn/SvnServiceImpl.java trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java Log: Generic-related warnings suppressed Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java 2005-12-08 16:54:47 UTC (rev 1740) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/server/cc/CcServiceImpl.java 2005-12-08 16:57:38 UTC (rev 1741) @@ -47,6 +47,7 @@ /** Service-specific handler. */ private CcDataHandler handler = new CcDataHandler(); + @SuppressWarnings("unchecked") public List<CcProject> getProjects(String dir) { log.debug("Service invoked: returning projects"); return (List<CcProject>)getFromCache(dir, handler); Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/jira/JiraServiceImpl.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/server/jira/JiraServiceImpl.java 2005-12-08 16:54:47 UTC (rev 1740) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/server/jira/JiraServiceImpl.java 2005-12-08 16:57:38 UTC (rev 1741) @@ -44,6 +44,7 @@ /** Service-specific handler. */ private JiraDataHandler handler = new JiraDataHandler(); + @SuppressWarnings("unchecked") public List<JiraProject> getProjects(String url) { log.debug("Service invoked: returning projects"); return (List<JiraProject>)getFromCache(url, handler); @@ -67,6 +68,7 @@ return false; } + @SuppressWarnings("unchecked") public Object reloadData(Object key) { String url = key.toString(); List<JiraProject> projects = new ArrayList<JiraProject>(); Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/sf/SfServiceImpl.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/server/sf/SfServiceImpl.java 2005-12-08 16:54:47 UTC (rev 1740) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/server/sf/SfServiceImpl.java 2005-12-08 16:57:38 UTC (rev 1741) @@ -35,6 +35,7 @@ /** Service-specific handler. */ private SfDataHandler handler = new SfDataHandler(); + @SuppressWarnings("unchecked") public List<SfRelease> getFileReleases(String url) { log.debug("Service invoked: returning releases"); return (List<SfRelease>)getFromCache(url, handler); Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/svn/SvnServiceImpl.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/server/svn/SvnServiceImpl.java 2005-12-08 16:54:47 UTC (rev 1740) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/server/svn/SvnServiceImpl.java 2005-12-08 16:57:38 UTC (rev 1741) @@ -59,6 +59,7 @@ /** Service-specific handler. */ private SvnDataHandler handler = new SvnDataHandler(); + @SuppressWarnings("unchecked") public List<SvnRepository> getRepositories(String url) { log.debug("Service invoked: returning repository"); return (List<SvnRepository>)getFromCache(url, handler); @@ -96,6 +97,7 @@ } } + @SuppressWarnings("unchecked") public Object reloadData(Object key) { String url = key.toString(); List<SvnRepository> repositories = new ArrayList<SvnRepository>(); @@ -217,6 +219,7 @@ } /** Analyzes the log of the repo and returns its stats. */ + @SuppressWarnings("unchecked") protected SvnRepositoryLogStats analyzeLog(SVNRepository repository) throws SVNException { SvnRepositoryLogStats stats = new SvnRepositoryLogStats(); @@ -338,6 +341,7 @@ } /** Recursively traverses the given SVN repository tree and updates the stats passed. */ + @SuppressWarnings("unchecked") protected void traverseRepository(SVNRepository repository, String path, SvnRepositoryContentStats stats) throws SVNException { Collection<SVNDirEntry> entries = (Collection<SVNDirEntry>)repository.getDir(path, -1, null, (Collection)null); Modified: trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java =================================================================== --- trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java 2005-12-08 16:54:47 UTC (rev 1740) +++ trunk/labs/kosmos/src/java/hu/midori/kosmos/server/util/ChartUtils.java 2005-12-08 16:57:38 UTC (rev 1741) @@ -111,6 +111,7 @@ * to prevent unreadably busy charts. * @param maxItems the maximum number of items in the returned pie-dataset or -1 if trimming is not needed. */ + @SuppressWarnings("unchecked") public static PieDataset collectionToPieDataset(Collection items, int maxItems) { DefaultPieDataset dataset = new DefaultPieDataset(); @@ -126,6 +127,7 @@ } /** Returns the list of the entries in the map sorted by their value (not by their key!) in descending order. */ + @SuppressWarnings("unchecked") public static List intValuedMapToSortedList(Map map) {// TODO should be Map<?, Integer> and List<Map.Entry<?, Integer>> List<Map.Entry> sorted = new ArrayList<Map.Entry>(map.entrySet()); Collections.sort(sorted, new Comparator() {// TODO should be Comparator<Map.Entry<?, Integer>> |
From: <jbo...@li...> - 2005-12-08 16:54:55
|
Author: mar...@jb... Date: 2005-12-08 11:54:47 -0500 (Thu, 08 Dec 2005) New Revision: 1740 Modified: trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/LogicTransformer.java trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/Rule.java trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/LogicTransformerTest.java trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/correct_processTree1.dat trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/correct_transform1.dat Log: JBRULES-9 -Jess does not allow ORs or Ands to be nested below Not and Exist - so make drools work the same - this makes builder a lot easier. Modified: trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/LogicTransformer.java =================================================================== --- trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/LogicTransformer.java 2005-12-08 16:53:01 UTC (rev 1739) +++ trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/LogicTransformer.java 2005-12-08 16:54:47 UTC (rev 1740) @@ -100,7 +100,7 @@ method ); } - And[] transform(And and) + And[] transform(And and) throws InvalidPatternException { And cloned = (And) and.clone(); @@ -154,7 +154,7 @@ * * @param ce */ - void processTree(ConditionalElement ce) + void processTree(ConditionalElement ce) throws InvalidPatternException { List newChildren = new ArrayList( ); @@ -238,7 +238,7 @@ } ConditionalElement applyOrTransformation(ConditionalElement parent, - ConditionalElement child) + ConditionalElement child) throws InvalidPatternException { OrTransformation transformation = null; Map map = (HashMap) this.orTransformations.get( parent.getClass( ) ); @@ -255,9 +255,9 @@ return transformation.transform( parent ); } - interface OrTransformation + interface OrTransformation { - ConditionalElement transform(ConditionalElement element); + ConditionalElement transform(ConditionalElement element) throws InvalidPatternException; } /** @@ -292,7 +292,7 @@ OrTransformation { - public ConditionalElement transform(ConditionalElement and) + public ConditionalElement transform(ConditionalElement and) throws InvalidPatternException { Or or = new Or( ); determinePermutations( 0, @@ -400,8 +400,8 @@ } /** + * This data structure is not valid * (Exist (OR (A B) - * * <pre> * Exist * | @@ -410,45 +410,22 @@ * a b * </pre> * - * (Exist ( Not (a) Not (b)) ) - * - * <pre> - * Exist - * / \ - * Not Not - * | | - * a b - * </pre> */ class ExistOrTransformation implements OrTransformation { - public ConditionalElement transform(ConditionalElement exist) + public ConditionalElement transform(ConditionalElement exist) throws InvalidPatternException { - if ( !(exist.getChildren( ).get( 0 ) instanceof Or) ) - { - throw new RuntimeException( "ExistOrTransformation expected '" + Or.class.getName( ) + "' but instead found '" + exist.getChildren( ).get( 0 ).getClass( ).getName( ) + "'" ); - } - - /* - * we know a Not only ever has one child, and the previous algorithm - * has confirmed the child is an OR - */ - Or or = (Or) exist.getChildren( ).get( 0 ); - And and = new And( ); - for ( Iterator it = or.getChildren( ).iterator( ); it.hasNext( ); ) - { - Exist newExist = new Exist( ); - newExist.addChild( it.next( ) ); - and.addChild( newExist ); - } - return and; + throw new InvalidPatternException("You cannot nest an OR within an Exist"); } } + /** + * This data structure is now valid + * * (Not (OR (A B) * * <pre> @@ -459,41 +436,15 @@ * a b * </pre> * - * (And ( Not (a) Exist (b)) ) - * - * <pre> - * And - * / \ - * Not Not - * | | - * a b - * </pre> */ class NotOrTransformation implements OrTransformation { - public ConditionalElement transform(ConditionalElement not) + public ConditionalElement transform(ConditionalElement not) throws InvalidPatternException { - if ( !(not.getChildren( ).get( 0 ) instanceof Or) ) - { - throw new RuntimeException( "NotOrTransformation expected '" + Or.class.getName( ) + "' but instead found '" + not.getChildren( ).get( 0 ).getClass( ).getName( ) + "'" ); - } - - /* - * we know a Not only ever has one child, and the previous algorithm - * has confirmed the child is an OR - */ - Or or = (Or) not.getChildren( ).get( 0 ); - And and = new And( ); - for ( Iterator it = or.getChildren( ).iterator( ); it.hasNext( ); ) - { - Not newNot = new Not( ); - newNot.addChild( it.next( ) ); - and.addChild( newNot ); - } - return and; + throw new InvalidPatternException("You cannot nest an OR within an Not"); } } Modified: trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/Rule.java =================================================================== --- trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/Rule.java 2005-12-08 16:53:01 UTC (rev 1739) +++ trunk/labs/jbossrules/drools-core/src/main/java/org/drools/rule/Rule.java 2005-12-08 16:54:47 UTC (rev 1740) @@ -433,8 +433,9 @@ * logic branch. The processing uses as a clone of the Rule's patterns, so they are not changed. * * @return + * @throws InvalidPatternException */ - public And[] getProcessPatterns() + public And[] getProcessPatterns() throws InvalidPatternException { return LogicTransformer.getInstance( ).transform( this.headPattern ); } Modified: trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/LogicTransformerTest.java =================================================================== --- trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/LogicTransformerTest.java 2005-12-08 16:53:01 UTC (rev 1739) +++ trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/LogicTransformerTest.java 2005-12-08 16:54:47 UTC (rev 1740) @@ -38,7 +38,7 @@ * a c b c * </pre> */ - public void testSingleOrAndOrTransformation() + public void testSingleOrAndOrTransformation() throws InvalidPatternException { String a = "a"; String b = "b"; @@ -105,7 +105,7 @@ * f f f f * </pre> */ - public void testMultipleOrAndOrTransformation() + public void testMultipleOrAndOrTransformation() throws InvalidPatternException { String a = "a"; String b = "b"; @@ -195,28 +195,20 @@ } /** + * This data structure is now valid + * * (Not (OR (A B) * * <pre> - * Not - * | - * or - * / \ - * a b + * Not + * | + * or + * / \ + * a b * </pre> * - * (And ( Not (a) Exist (b)) ) - * - * <pre> - * And - * / \ - * Not Not - * | | - * a b - * </pre> - * </pre> */ - public void testNotOrTransformation() + public void testNotOrTransformation() throws InvalidPatternException { String a = "a"; String b = "b"; @@ -228,48 +220,31 @@ or.addChild( a ); or.addChild( b ); - And newAnd = (And) LogicTransformer.getInstance( ).applyOrTransformation( not, - or ); - - assertLength( 2, - newAnd.getChildren( ) ); - assertEquals( Not.class, - newAnd.getChildren( ).get( 0 ).getClass( ) ); - assertEquals( Not.class, - newAnd.getChildren( ).get( 1 ).getClass( ) ); - - Not not1 = (Not) newAnd.getChildren( ).get( 0 ); - assertContains( a, - not1.getChildren( ) ); - - Not not2 = (Not) newAnd.getChildren( ).get( 1 ); - assertContains( b, - not2.getChildren( ) ); + try + { + And newAnd = (And) LogicTransformer.getInstance( ).applyOrTransformation( not, + or ); + fail("This should fail as you cannot nest Ors under Nots"); + } + catch(InvalidPatternException e) + { + // + } } /** + * This data structure is not valid * (Exist (OR (A B) - * * <pre> - * Not - * | - * or - * / \ - * a b + * Exist + * | + * or + * / \ + * a b * </pre> * - * (And ( Exist (a) Exist (b)) ) - * - * <pre> - * And - * / \ - * Not Not - * | | - * a b - * </pre> - * </pre> */ - public void testExistOrTransformation() + public void testExistOrTransformation() throws InvalidPatternException { String a = "a"; String b = "b"; @@ -281,26 +256,21 @@ or.addChild( a ); or.addChild( b ); - And newAnd = (And) LogicTransformer.getInstance( ).applyOrTransformation( exist, - or ); + try + { + And newAnd = (And) LogicTransformer.getInstance( ).applyOrTransformation( exist, + or ); + + fail("This should fail as you cannot nest Ors under Existss"); + } + catch(InvalidPatternException e) + { + // + } - assertLength( 2, - newAnd.getChildren( ) ); - assertEquals( Exist.class, - newAnd.getChildren( ).get( 0 ).getClass( ) ); - assertEquals( Exist.class, - newAnd.getChildren( ).get( 1 ).getClass( ) ); - - Exist exist1 = (Exist) newAnd.getChildren( ).get( 0 ); - assertContains( a, - exist1.getChildren( ) ); - - Exist exist2 = (Exist) newAnd.getChildren( ).get( 1 ); - assertContains( b, - exist2.getChildren( ) ); } - public void testDuplicatTransformation() + public void testDuplicatTransformation() throws InvalidRuleException { String a = "a"; String b = "b"; @@ -344,15 +314,15 @@ * / | \ * __/ | \__ * / | \ - * And and Not - * / | \ / \ | - * a And d e Or Or - * / \ / \ / \ - * b Not f Exist i And - * | | / \ - * Not Or j k - * | / \ - * c g h + * And and Not + * / | \ / \ | + * a And d e Or h + * / \ / \ + * b Not f Exist + * | | + * Not g + * | + * c * </pre> * <pre> * _/|\__ @@ -362,13 +332,13 @@ * / | \__ * / | \__ * | | \ - * And Or And - * / | | \ / \ / \ - * a b d Not And And Not Not - * | / \ / | \ | | - * Not e f e Exist Exist i And - * | | | / \ - * c g h j k + * And Or Not + * / | | \ / \ | + * a b d Not And And i + * | / \ / | + * Not e f e Exist + * | | + * c g * </pre> * * @throws IOException @@ -378,7 +348,8 @@ * */ public void testProcessTree() throws IOException, - ClassNotFoundException + ClassNotFoundException, + InvalidPatternException { String a = "a"; String b = "b"; @@ -409,21 +380,12 @@ Or or1 = new Or( ); and3.addChild( or1 ); Exist exist1 = new Exist( ); - Or or2 = new Or( ); - or2.addChild( f ); - or2.addChild( g ); - exist1.addChild( or2 ); + exist1.addChild( g ); or1.addChild( exist1 ); or1.addChild( h ); - Not not3 = new Not( ); - Or or3 = new Or( ); - not3.addChild( or3 ); - or3.addChild( i ); - And and4 = new And( ); - and4.addChild( j ); - and4.addChild( k ); - or3.addChild( and4 ); + Not not3 = new Not( ); + not3.addChild( i ); And root = new And( ); root.addChild( and1 ); @@ -457,6 +419,10 @@ // Get known correct tree // The binary stream was created from a handchecked correct output + + // Uncomment this when you need to output a new known correct tree result + //writeTree(root, "correct_processTree1.dat"); + ObjectInputStream ois = new ObjectInputStream( this.getClass( ).getResourceAsStream( "correct_processTree1.dat" ) ); And correctResultRoot = (And) ois.readObject( ); @@ -516,12 +482,12 @@ * __/ | \__ * / | \ * And or And - * / \ / \ / \ - * a Or d e Not OR - * / \ | / \ - * b c Or h i - * / \ - * f g + * / \ / \ / \ + * a Or d e Not OR + * / \ | / | + * b c f g Not + * | + * h * * * @@ -530,11 +496,11 @@ * <pre> * * - * And___ And___ And___ And___ And___ And___ And___ And___ - * |||| \ \ |||| \ \ |||| \ \ |||| \ \ |||| \ \ |||| \ \ |||| \ \ |||| \ \ - * dabh Not Not dabi Not Not dach Not Not daci Not Not eabh Not Not eabi Not Not each Not Not eaci Not Not - * | | | | | | | | | | | | | | | | - * f g f g f g f g f g f g f g f g + * And___ And___ And___ And___ And__ And___ And___ And___ + * ||| | \ ||| | \ ||| | \ ||| | \ ||| | \ ||| | \ ||| | \ ||| | \ + * dab Not g dab Not Not dac Not g dac Not Not eab Not g eab Not Not eac Not g eac Not Not + * | | | | | | | | | | | | | + * f f h f f h f f h f f h * * * </pre> @@ -550,7 +516,8 @@ * */ public void testTransform() throws IOException, - ClassNotFoundException + ClassNotFoundException, + InvalidPatternException { String a = "a"; String b = "b"; @@ -579,17 +546,14 @@ And and2 = new And( ); Not not1 = new Not( ); + not1.addChild( f ); Or or3 = new Or( ); - not1.addChild( or3 ); - or3.addChild( f ); or3.addChild( g ); - and2.addChild( not1 ); - Or or4 = new Or( ); - or4.addChild( h ); - or4.addChild( i ); - and2.addChild( or4 ); - and.addChild( and2 ); + Not not2 = new Not( ); + not2.addChild( h ); + or3.addChild( not2 ); + //--------------------------------------- // Check a simple case no just one branch //--------------------------------------- @@ -620,6 +584,9 @@ ands = LogicTransformer.getInstance( ).transform( and ); + // Uncomment this when you need to output a new known correct tree result + //writeTree(ands, "correct_transform1.dat"); + //Now check the main tree // Get known correct tree @@ -634,4 +601,16 @@ } } + private void writeTree(Object object, String fileName) throws IOException + { + String className = this.getClass().getName(); + + File file = new File( this.getClass().getResource( className.substring( className.lastIndexOf( '.' ) + 1 ) + ".class" ).getFile() ); + + file = new File( file.getParent(), + fileName ); + + new ObjectOutputStream ( new FileOutputStream(file) ).writeObject ( object ); + } + } Modified: trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/correct_processTree1.dat =================================================================== (Binary files differ) Modified: trunk/labs/jbossrules/drools-core/src/test/java/org/drools/rule/correct_transform1.dat =================================================================== (Binary files differ) |
From: <jbo...@li...> - 2005-12-08 16:53:05
|
Author: rl...@jb... Date: 2005-12-08 11:53:01 -0500 (Thu, 08 Dec 2005) New Revision: 1739 Added: trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactItem.java trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactMojoParent.java trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/CopyMojo.java trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ExplodeMojo.java Log: corrected package Added: trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactItem.java =================================================================== --- trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactItem.java 2005-12-08 16:50:16 UTC (rev 1738) +++ trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactItem.java 2005-12-08 16:53:01 UTC (rev 1739) @@ -0,0 +1,123 @@ +/** + * Copyright 2005 Scientific Technologies Corporation. All rights reserved. + * Filename: ArtifactItem.java + * Author : brianf + * Created : Nov 28, 2005 + * @version $Id$ */ +package com.stchome.maven.plugins; +import java.io.File; + +/** + * @author brianf + * + * ArtifactItem + * + */ +public class ArtifactItem +{ + private String groupId; + private String artifactId; + private String version; + private String type; + private File location; + private boolean overWrite = true; + + /** + * @return Returns the artifactId. + */ + public String getArtifactId() + { + return artifactId; + } + /** + * @param artifactId The artifactId to set. + */ + public void setArtifactId( String artifact ) + { + this.artifactId = artifact; + } + /** + * @return Returns the groupId. + */ + public String getGroupId() + { + return groupId; + } + /** + * @param groupId The groupId to set. + */ + public void setGroupId( String groupId ) + { + this.groupId = groupId; + } + /** + * @return Returns the type. + */ + public String getType() + { + return type; + } + /** + * @param type The type to set. + */ + public void setType( String type ) + { + this.type = type; + } + /** + * @return Returns the version. + */ + public String getVersion() + { + return version; + } + /** + * @param version The version to set. + */ + public void setVersion( String version ) + { + this.version = version; + } + /** + * + */ + public ArtifactItem() + { + super(); + location = null; + + } + public String toString() + { + return groupId+":"+artifactId+":"+version+":"+type; + } + + /** + * @return Returns the location. + */ + public File getLocation() + { + return location; + } + /** + * @param location The location to set. + */ + public void setLocation( File location ) + { + this.location = location; + } +/** + * @return Returns the overWrite. + */ +public boolean isOverWrite() +{ + return this.overWrite; +} +/** + * @param overWrite The overWrite to set. + */ +public void setOverWrite( boolean overWrite ) +{ + this.overWrite = overWrite; +} +} Added: trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactMojoParent.java =================================================================== --- trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactMojoParent.java 2005-12-08 16:50:16 UTC (rev 1738) +++ trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ArtifactMojoParent.java 2005-12-08 16:53:01 UTC (rev 1739) @@ -0,0 +1,129 @@ +package com.stchome.maven.plugins; + +/* + * Copyright 2001-2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import java.io.File; +import java.util.ArrayList; +import java.util.Iterator; + +import org.apache.maven.artifact.Artifact; +import org.apache.maven.artifact.resolver.ArtifactNotFoundException; +import org.apache.maven.artifact.resolver.ArtifactResolutionException; +import org.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.logging.Log; +import org.codehaus.plexus.archiver.manager.ArchiverManager; + +public abstract class ArtifactMojoParent extends AbstractMojo +{ + + /** + * @component + */ + private org.apache.maven.artifact.factory.ArtifactFactory factory; + + /** + * @component + */ + private org.apache.maven.artifact.resolver.ArtifactResolver resolver; + + /** + * @parameter expression="${localRepository}" + * @readonly + * @required + */ + private org.apache.maven.artifact.repository.ArtifactRepository local; + + /** + * @parameter expression="${project.remoteArtifactRepositories}" + * @readonly + * @required + */ + private java.util.List remoteRepos; + + /** + * Directory to unpack JARs into if needed + * + * @parameter + * @required + */ + protected File defaultWorkDirectory; + + /** + * To look up Archiver/UnArchiver implementations + * + * @parameter expression="${component.org.codehaus.plexus.archiver.manager.ArchiverManager}" + * @required + */ + + protected ArchiverManager archiverManager; + + /** + * List of Artifacts. + * @parameter + * @required + */ + private ArrayList artifactItems; + + Log log; + + public ArtifactMojoParent() + { + super(); + log = getLog(); + } + public void execute() throws MojoExecutionException + { + + Iterator iter = artifactItems.iterator(); + while (iter.hasNext()) + { + ArtifactItem artifactItem = (ArtifactItem) iter.next(); + log.info("Configured Artifact: "+artifactItem.toString()); + try + { + Artifact artifact = getArtifact(artifactItem); + File file = artifactItem.getLocation(); + if (file == null) + { + file = defaultWorkDirectory; + } + file.mkdirs(); + doMojo(artifact,file,artifactItem); + } + catch (Exception e) + { + throw new MojoExecutionException("Nested:",e); + } + } + } + + /** + * gets the Artifact and resolves from repository. + */ + protected Artifact getArtifact(ArtifactItem artifactItem) throws ArtifactResolutionException, ArtifactNotFoundException + { + Artifact artifact; + + artifact = factory.createArtifact(artifactItem.getGroupId(), artifactItem.getArtifactId(), artifactItem.getVersion(), Artifact.SCOPE_PROVIDED, artifactItem.getType()); + + resolver.resolve(artifact, remoteRepos, local); + return artifact; + } + + protected abstract void doMojo(Artifact artifact, File location, ArtifactItem artifactItem) throws Exception; +} Added: trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/CopyMojo.java =================================================================== --- trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/CopyMojo.java 2005-12-08 16:50:16 UTC (rev 1738) +++ trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/CopyMojo.java 2005-12-08 16:53:01 UTC (rev 1739) @@ -0,0 +1,48 @@ +package com.stchome.maven.plugins; + +import java.io.File; +import java.io.IOException; + +import org.apache.maven.artifact.Artifact; +import org.codehaus.plexus.util.FileUtils; + +/* + * Copyright 2001-2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Goal which touches a timestamp file. + * + * @goal copy + * + * @phase process-sources + */ +public class CopyMojo extends ArtifactMojoParent +{ + + protected void doMojo( Artifact artifact, File location, ArtifactItem artifactItem ) throws Exception + { + log.info("Copying " + artifact.getFile().getAbsolutePath() + " to " + location); + if (!artifact.getFile().exists() || artifactItem.isOverWrite()) + { + FileUtils.copyFileToDirectory(artifact.getFile(), location); + } + else + { + log.info("File Exists, skipping."); + } + } + +} Added: trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ExplodeMojo.java =================================================================== --- trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ExplodeMojo.java 2005-12-08 16:50:16 UTC (rev 1738) +++ trunk/labs/jbossbuild/projects/maven-plugins/artifact-utils/src/main/java/com/stchome/maven/plugins/ExplodeMojo.java 2005-12-08 16:53:01 UTC (rev 1739) @@ -0,0 +1,83 @@ +package com.stchome.maven.plugins; + +/* + * Copyright 2001-2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import java.io.File; +import java.io.IOException; + +import org.apache.maven.artifact.Artifact; +import org.apache.maven.plugin.MojoExecutionException; +import org.codehaus.plexus.archiver.ArchiverException; +import org.codehaus.plexus.archiver.UnArchiver; +import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; +import org.codehaus.plexus.util.FileUtils; +/** + * Goal which touches a timestamp file. + * + * @goal explode + * + * @phase process-sources + */ +public class ExplodeMojo extends ArtifactMojoParent +{ + + + protected void doMojo(Artifact artifact, File location, ArtifactItem artifactItem)throws Exception + { + unpack(artifact.getFile(), location,artifactItem.isOverWrite()); + } + + /** + * Unpacks the archive file. + * + * @param file + * File to be unpacked. + * @param location + * Location where to put the unpacked files. + */ + protected void unpack( File file, File location, boolean overWrite ) throws MojoExecutionException, + NoSuchArchiverException + { + log.info("Unpacking File " + file.getAbsolutePath() + " to " + + location.getAbsolutePath()); + String archiveExt = FileUtils.getExtension(file.getAbsolutePath()).toLowerCase(); + + try + { + UnArchiver unArchiver; + + unArchiver = this.archiverManager.getUnArchiver(archiveExt); + + unArchiver.setOverwrite(overWrite); + unArchiver.setSourceFile(file); + + unArchiver.setDestDirectory(location); + + unArchiver.extract(); + } + catch (IOException e) + { + throw new MojoExecutionException("Error unpacking file: " + file + "to: " + location, e); + } + catch (ArchiverException e) + { + throw new MojoExecutionException("Error unpacking file: " + file + "to: " + location, e); + } + } + + +} |
From: <jbo...@li...> - 2005-12-08 16:50:27
|
Author: aron.gombas Date: 2005-12-08 11:50:16 -0500 (Thu, 08 Dec 2005) New Revision: 1738 Modified: trunk/labs/kosmos/xdocs/others/welcome.txt Log: Updated welcome file Modified: trunk/labs/kosmos/xdocs/others/welcome.txt =================================================================== --- trunk/labs/kosmos/xdocs/others/welcome.txt 2005-12-08 09:49:59 UTC (rev 1737) +++ trunk/labs/kosmos/xdocs/others/welcome.txt 2005-12-08 16:50:16 UTC (rev 1738) @@ -19,7 +19,4 @@ Free technical support: http://www.jboss.com/index.html?module=bb&op=viewforum&f=225 -Wiki: http://labs.jboss.com/portal/index.html?ctrl:id=window.default.WikiPortletWindow&ctrl:type=action&page=Kosmos&project=kosmos - - Professional support: in...@mi... |
From: <jbo...@li...> - 2005-12-08 09:50:04
|
Author: mar...@jb... Date: 2005-12-08 04:49:59 -0500 (Thu, 08 Dec 2005) New Revision: 1737 Modified: trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex trunk/labs/jbossrules/drools-manual/drools-manual.tex Log: JBRULES-8 -More additions to the Latex manual structure Modified: trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex 2005-12-08 09:39:31 UTC (rev 1736) +++ trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex 2005-12-08 09:49:59 UTC (rev 1737) @@ -6,10 +6,9 @@ \section{Pattern Matching} \subsection{Columns} -asdf \subsubsection{Column Bindings} \subsubsection{Field Bindings} - + \subsection{Constraints} \subsubsection{Literal Constraints} \subsubsection{Predicate Field Constraints} @@ -19,25 +18,11 @@ \subsubsection{The 'evaluate' Conditional Element} \subsubsection{The 'and' Conditional Element} \subsubsection{The 'or' Conditional Element} - -\lstset{language=Java} -\begin{lstlisting} -import java.util.*; - -public class TestClass -{ - public void myMethod(String arg1, Map arg2) - { - System.out.println(); - } -} -\end{lstlisting} - \subsubsection{The 'not' Conditional Element} \subsubsection{The 'exist' Conditional Element} \subsubsection{The 'forall' Conditional Element} \subsubsection{The 'accumulate' Conditional Element} -\subsubsection{The 'logical' Conditional Element} +\subsubsection{The 'logical' Conditional Element} \subsection{Functions} @@ -54,4 +39,6 @@ \section{Temporal Rules} \section{Truth Maintenance} - + +\section{Searching with Query} + Modified: trunk/labs/jbossrules/drools-manual/drools-manual.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/drools-manual.tex 2005-12-08 09:39:31 UTC (rev 1736) +++ trunk/labs/jbossrules/drools-manual/drools-manual.tex 2005-12-08 09:49:59 UTC (rev 1737) @@ -1,15 +1,10 @@ %&latex \documentclass[14pt]{book} - \usepackage{color} - \usepackage{listings} - \definecolor{Brown}{cmyk}{0,0.81,1,0.60} - \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40} - \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0} +\usepackage{listings} %+MakeIndex \usepackage{makeidx} - \makeindex %-MakeIndex |
From: <jbo...@li...> - 2005-12-08 09:39:43
|
Author: mar...@jb... Date: 2005-12-08 04:39:31 -0500 (Thu, 08 Dec 2005) New Revision: 1736 Added: trunk/labs/jbossrules/drools-manual/Benchmarking.tex trunk/labs/jbossrules/drools-manual/Building_And_Deploying_Rule_Bases.tex trunk/labs/jbossrules/drools-manual/Decision_Tables.tex trunk/labs/jbossrules/drools-manual/Developing_Drools.tex trunk/labs/jbossrules/drools-manual/Rule_Management.tex trunk/labs/jbossrules/drools-manual/Semantic_Module_Framework.tex trunk/labs/jbossrules/drools-manual/Semantic_Modules.tex Modified: trunk/labs/jbossrules/drools-manual/JSR-94.tex trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex trunk/labs/jbossrules/drools-manual/drools-manual.tex Log: JBRULES-8 -More additions to the Latex manual structure Added: trunk/labs/jbossrules/drools-manual/Benchmarking.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/Benchmarking.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/Benchmarking.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -0,0 +1,4 @@ +\chapter{JSR 94} +There is text in first chapter + + Added: trunk/labs/jbossrules/drools-manual/Building_And_Deploying_Rule_Bases.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/Building_And_Deploying_Rule_Bases.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/Building_And_Deploying_Rule_Bases.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -0,0 +1,11 @@ +\chapter{Building and Deploying Rule Bases} +There is text in first chapter + +\section{Loading a Rule Set} + +\section{Loading a Rule Base} + +\section{Deployment with Drools Deployment Jars (.ddj)} + +\section{Debugging with Drools Deployment Source Jars } + Added: trunk/labs/jbossrules/drools-manual/Decision_Tables.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/Decision_Tables.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/Decision_Tables.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -0,0 +1,4 @@ +\chapter{Decision Tables} +There is text in first chapter + + Added: trunk/labs/jbossrules/drools-manual/Developing_Drools.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/Developing_Drools.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/Developing_Drools.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -0,0 +1,8 @@ +\chapter{Developing Drools} + +\section{Building with Maven 2.0} + +\section{Using Eclipse} + +\section{Using IntelliJ} + Modified: trunk/labs/jbossrules/drools-manual/JSR-94.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/JSR-94.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/JSR-94.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -1,4 +1,4 @@ -\chapter{JSR 94} +\chapter{JSR-94} There is text in first chapter Added: trunk/labs/jbossrules/drools-manual/Rule_Management.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/Rule_Management.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/Rule_Management.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -0,0 +1,5 @@ +\chapter{Rule Management} +There is text in first chapter + +\section{The Rule Repository} + Added: trunk/labs/jbossrules/drools-manual/Semantic_Module_Framework.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/Semantic_Module_Framework.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/Semantic_Module_Framework.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -0,0 +1,13 @@ +\chapter{Semantic Module Framework} +There is text in first chapter + +\section{Semantic Modules} + +\subsection{Java} + +\subsection{Groovy} + +\subsection{Python} + +\subsection{C\#} + Added: trunk/labs/jbossrules/drools-manual/Semantic_Modules.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/Semantic_Modules.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/Semantic_Modules.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -0,0 +1,11 @@ +\chapter{Semantic Modules} +There is text in first chapter + +\section{Java} + +\section{Groovy} + +\section{Python} + +\section{C\#} + Modified: trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -1,8 +1,12 @@ \chapter{The Rule Assembly Language} There is text in first chapter +\section{Rule Overview} + \section{Pattern Matching} + \subsection{Columns} +asdf \subsubsection{Column Bindings} \subsubsection{Field Bindings} @@ -15,21 +19,39 @@ \subsubsection{The 'evaluate' Conditional Element} \subsubsection{The 'and' Conditional Element} \subsubsection{The 'or' Conditional Element} + +\lstset{language=Java} +\begin{lstlisting} +import java.util.*; + +public class TestClass +{ + public void myMethod(String arg1, Map arg2) + { + System.out.println(); + } +} +\end{lstlisting} + \subsubsection{The 'not' Conditional Element} \subsubsection{The 'exist' Conditional Element} \subsubsection{The 'forall' Conditional Element} \subsubsection{The 'accumulate' Conditional Element} \subsubsection{The 'logical' Conditional Element} +\subsection{Functions} +\subsection{Application Data} +\subsection{Imports} + \section{Rule Execution Control} \subsection{Salience} \subsection{Semaphores} \subsection{Modules} \subsection{Xor Group} -\section{Temperal Rules} +\section{Temporal Rules} \section{Truth Maintenance} Modified: trunk/labs/jbossrules/drools-manual/drools-manual.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/drools-manual.tex 2005-12-08 06:37:49 UTC (rev 1735) +++ trunk/labs/jbossrules/drools-manual/drools-manual.tex 2005-12-08 09:39:31 UTC (rev 1736) @@ -1,14 +1,21 @@ %&latex -\documentclass[14pt]{extbook} +\documentclass[14pt]{book} + \usepackage{color} + \usepackage{listings} + \definecolor{Brown}{cmyk}{0,0.81,1,0.60} + \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40} + \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0} + %+MakeIndex \usepackage{makeidx} + \makeindex %-MakeIndex \begin{document} -\title{\Huge\bf JBoss Rules} +\title{\Huge\bf Drools\\ the\\ JBoss Rules} \author{Mark Proctor,\\ Bob McWhirter,\\ Michael Neale} @@ -19,12 +26,26 @@ \tableofcontents %+Contents +\part {Drools} + \include {The_Rule_Engine} \include {The_Rule_Assembly_Language} +\include {Semantic_Module_Framework} + \include {JSR-94} +\include {Decision_Tables} + +\include {Building_And_Deploying_Rule_Bases} + +\include {Rule_Management} + +\include {Developing_Drools} + +\part {Examples and Case Studies} + %+Bibliography \begin{thebibliography}{99} \bibitem{Label1} ... |
From: <jbo...@li...> - 2005-12-08 06:37:55
|
Author: mar...@jb... Date: 2005-12-08 01:37:49 -0500 (Thu, 08 Dec 2005) New Revision: 1735 Added: trunk/labs/jbossrules/drools-manual/ trunk/labs/jbossrules/drools-manual/JSR-94.tex trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex trunk/labs/jbossrules/drools-manual/The_Rule_Engine.tex trunk/labs/jbossrules/drools-manual/drools-manual.tex Log: JBRULES-8 -Create initial Latex manual structure Added: trunk/labs/jbossrules/drools-manual/JSR-94.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/JSR-94.tex 2005-12-07 23:30:47 UTC (rev 1734) +++ trunk/labs/jbossrules/drools-manual/JSR-94.tex 2005-12-08 06:37:49 UTC (rev 1735) @@ -0,0 +1,4 @@ +\chapter{JSR 94} +There is text in first chapter + + Added: trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex 2005-12-07 23:30:47 UTC (rev 1734) +++ trunk/labs/jbossrules/drools-manual/The_Rule_Assembly_Language.tex 2005-12-08 06:37:49 UTC (rev 1735) @@ -0,0 +1,35 @@ +\chapter{The Rule Assembly Language} +There is text in first chapter + +\section{Pattern Matching} +\subsection{Columns} +\subsubsection{Column Bindings} +\subsubsection{Field Bindings} + +\subsection{Constraints} +\subsubsection{Literal Constraints} +\subsubsection{Predicate Field Constraints} +\subsubsection{Return Value Constraints} + +\subsection{Conditional Elements} +\subsubsection{The 'evaluate' Conditional Element} +\subsubsection{The 'and' Conditional Element} +\subsubsection{The 'or' Conditional Element} +\subsubsection{The 'not' Conditional Element} +\subsubsection{The 'exist' Conditional Element} +\subsubsection{The 'forall' Conditional Element} +\subsubsection{The 'accumulate' Conditional Element} +\subsubsection{The 'logical' Conditional Element} + + + +\section{Rule Execution Control} +\subsection{Salience} +\subsection{Semaphores} +\subsection{Modules} +\subsection{Xor Group} + +\section{Temperal Rules} + +\section{Truth Maintenance} + Added: trunk/labs/jbossrules/drools-manual/The_Rule_Engine.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/The_Rule_Engine.tex 2005-12-07 23:30:47 UTC (rev 1734) +++ trunk/labs/jbossrules/drools-manual/The_Rule_Engine.tex 2005-12-08 06:37:49 UTC (rev 1735) @@ -0,0 +1,26 @@ +\chapter{The Rule Engine} +There is text in first chapter + +\section{Rete Algorithm} + +\section{Rule Base} + +\section{Working Memory} +\subsection{Facts} +\subsection{Assertion} +\subsection{Retraction} +\subsection{Modification} +\subsection{Application Data} +\subsection{Property Change Listeners} +\subsection{Shadow Facts} +\subsection{Stateless and Stateful Sessions} +\subsection{Synchronisation and Threading Issues} + +\section{Agenda} +\subsection{Conflict Resolution} +\subsection{Modules} +\subsection{Filters} + +\section{Event Model} +\subsection{Debug Event Listener} +\subsection{Audit Event Listener} Added: trunk/labs/jbossrules/drools-manual/drools-manual.tex =================================================================== --- trunk/labs/jbossrules/drools-manual/drools-manual.tex 2005-12-07 23:30:47 UTC (rev 1734) +++ trunk/labs/jbossrules/drools-manual/drools-manual.tex 2005-12-08 06:37:49 UTC (rev 1735) @@ -0,0 +1,41 @@ +%&latex +\documentclass[14pt]{extbook} + +%+MakeIndex +\usepackage{makeidx} +\makeindex +%-MakeIndex + +\begin{document} + +\title{\Huge\bf JBoss Rules} +\author{Mark Proctor,\\ + Bob McWhirter,\\ + Michael Neale} +\date{\today} +\maketitle + +%+Contents +\tableofcontents +%+Contents + +\include {The_Rule_Engine} + +\include {The_Rule_Assembly_Language} + +\include {JSR-94} + +%+Bibliography +\begin{thebibliography}{99} +\bibitem{Label1} ... +\bibitem{Label2} ... +\end{thebibliography} +%-Bibliography + +%+MakeIndex +\printindex +%-MakeIndex + +\end{document} + + |
From: <jbo...@li...> - 2005-12-07 23:30:53
|
Author: wrzep Date: 2005-12-07 18:30:47 -0500 (Wed, 07 Dec 2005) New Revision: 1734 Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java Log: slight changes after creating common subclass for plugins using kosmos service http://jira.jboss.com/jira/browse/JBLAB-415 Pawel Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java 2005-12-07 22:54:08 UTC (rev 1733) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java 2005-12-07 23:30:47 UTC (rev 1734) @@ -22,14 +22,12 @@ package org.jboss.forge.status.plugins.jira; -import java.util.HashMap; -import java.util.Iterator; +import java.net.MalformedURLException; import java.util.List; import java.util.Map; -import org.jboss.forge.common.projects.Projects; -import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; -import org.jboss.forge.status.plugins.StatusPlugin; +import org.jboss.forge.status.KosmosStatusPlugin; +import org.jboss.logging.Logger; import com.caucho.hessian.client.HessianProxyFactory; @@ -39,87 +37,61 @@ * @author Pawel Wrzeszcz */ -public abstract class JiraStatusPlugin extends StatusPlugin { +public abstract class JiraStatusPlugin extends KosmosStatusPlugin { private static final String JIRA_SERVICE_PROPERTY = "jira-service"; + private static final String JIRA_ADRESS_TAG = "jira-adress"; - private Map<String,Map> projectsMaps; + protected String getKosmosServiceProperty() { return JIRA_SERVICE_PROPERTY;}; - private String serviceURL; + protected Logger log; public JiraStatusPlugin() { super(); - projectsMaps = new HashMap<String,Map>(); + log = Logger.getLogger(this.getClass()); } - public void init(String name, String id, Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { - super.init(name, id, projects,properties); + + protected Map getProjectMap(String projectId) { + // Get project jira URL + String jiraURL = getJiraURL(projectId); - getProperties(properties); - - } - private void getProperties(Map<String, String> properties) throws InvalidPluginPropertiesException { - if (properties == null) { - throw new InvalidPluginPropertiesException("Missing properties for " + getName() + " plugin."); + if (jiraURL == null) { + return null; } - - serviceURL = properties.get(JIRA_SERVICE_PROPERTY); - if (serviceURL == null) { - throw new InvalidPluginPropertiesException( - "Missing " + JIRA_SERVICE_PROPERTY + " property for " + getName() + " plugin."); - } - } - - protected abstract int getPluginSpecyficValue(Map projectMap); - protected abstract int getPluginSpecyficDefaultValue(); - - protected Map getJiraProject(String projectId) { - //Get the projects from kosmo server - - List jiraProjects = null; + Map jiraMap = null; - JiraService service = null; - + // Connect to kosmos service HessianProxyFactory factory = new HessianProxyFactory(); - + JiraService service; + try { - service = (JiraService) factory.create(JiraService.class, serviceURL); - - if (service != null) { - System.out.println("KOSMOS service: " + service.toString()); - } else { - System.out.println("KOSMOS service == null"); - } + service = (JiraService) factory.create(JiraService.class, serviceURL); + } catch (MalformedURLException e) { + log.error("Can not connect to kosmos jira service: " + serviceURL); + return null; + } - jiraProjects = service.getProjects("http://jira.jboss.com/jira/browse/JBLAB"); - - System.out.println("class: " + service.getProjects("http://jira.jboss.com/jira/browse/JBLAB").getClass()); - + // Get map with jira statistics + List repositories = null; + try { + repositories = service.getProjects(jiraURL); } catch (Exception e) { - e.printStackTrace(); + log.error("Can not analyze jira: " + jiraURL, e); + return null; } - - Map jiraMap = (Map) jiraProjects.get(0); + jiraMap = (Map) repositories.get(0); + return jiraMap; } - - public int getValue(String projectId) { - - if (!projectsMaps.containsKey(projectId)) { - projectsMaps.put(projectId, getJiraProject(projectId)); - } - - Map projectMap = projectsMaps.get(projectId); - - if (projectMap == null) { - return getPluginSpecyficDefaultValue(); - } - - return getPluginSpecyficValue(projectMap); + + private String getJiraURL(String projectId) { + String jiraURL = projects.getProjectProperty(projectId, JIRA_ADRESS_TAG); + return (jiraURL == "" ? null : jiraURL); } } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 22:54:08 UTC (rev 1733) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 23:30:47 UTC (rev 1734) @@ -40,6 +40,7 @@ public abstract class SvnStatusPlugin extends KosmosStatusPlugin { private static final String SVN_SERVICE_PROPERTY = "svn-service"; + private static final String SVN_REPO_ADRESS_TAG = "svn-repo"; protected String getKosmosServiceProperty() { return SVN_SERVICE_PROPERTY;}; @@ -73,7 +74,7 @@ return null; } - // Get repository map + // Get map with repository statistics List repositories = null; try { repositories = service.getRepositories(repoURL); @@ -88,7 +89,7 @@ } private String getRepoURL(String projectId) { - String repoURL = projects.getProjectProperty(projectId, "svn-repo"); + String repoURL = projects.getProjectProperty(projectId, SVN_REPO_ADRESS_TAG); return (repoURL == "" ? null : repoURL); } |
From: <jbo...@li...> - 2005-12-07 22:54:16
|
Author: wrzep Date: 2005-12-07 17:54:08 -0500 (Wed, 07 Dec 2005) New Revision: 1733 Added: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/KosmosStatusPlugin.java Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java Log: superclass for plugins using kosmos-service http://jira.jboss.com/jira/browse/JBLAB-415 Pawel Added: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/KosmosStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/KosmosStatusPlugin.java 2005-12-07 21:42:18 UTC (rev 1732) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/KosmosStatusPlugin.java 2005-12-07 22:54:08 UTC (rev 1733) @@ -0,0 +1,105 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package org.jboss.forge.status; + +import org.jboss.forge.common.projects.Projects; +import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; +import org.jboss.forge.status.plugins.StatusPlugin; + +import org.jboss.logging.Logger; + +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + +/** +* @author Pawel Wrzeszcz +*/ + +public abstract class KosmosStatusPlugin extends StatusPlugin { + + protected abstract String getKosmosServiceProperty(); + + private Map<String,Map> projectsMaps; + + protected String serviceURL; + + protected Logger log; + + public KosmosStatusPlugin() { + super(); + + log = Logger.getLogger(this.getClass()); + projectsMaps = new HashMap<String,Map>(); + } + + public void init(String name, String id, Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { + super.init(name, id, projects,properties); + + getProperties(properties); + } + + private void getProperties(Map<String, String> properties) throws InvalidPluginPropertiesException { + if (properties == null) { + throw new InvalidPluginPropertiesException("Missing properties for " + getName() + " plugin."); + } + + serviceURL = properties.get(getKosmosServiceProperty()); + + if (serviceURL == null) { + throw new InvalidPluginPropertiesException( + "Missing " + getKosmosServiceProperty() + " property for " + getName() + " plugin."); + } + } + + protected abstract int getPluginSpecyficValue(Map projectMap); + protected abstract int getPluginSpecyficDefaultValue(); + + protected abstract Map getProjectMap(String projectId); + + protected void printMap(Map map) { //debug + if (map != null) { + + for (Iterator iter = map.keySet().iterator(); iter.hasNext();) { + Object obj = (Object) iter.next(); + System.out.println("object: " + obj + " binding: " + map.get(obj)); + } + } + } + + public int getValue(String projectId) { + + if (!projectsMaps.containsKey(projectId)) { + projectsMaps.put(projectId, getProjectMap(projectId)); + } + + Map projectMap = projectsMaps.get(projectId); + + if (projectMap == null) { + return getPluginSpecyficDefaultValue(); + } + + return getPluginSpecyficValue(projectMap); + } + +} Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java 2005-12-07 21:42:18 UTC (rev 1732) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java 2005-12-07 22:54:08 UTC (rev 1733) @@ -24,7 +24,6 @@ import java.util.HashMap; import java.util.Iterator; -import java.util.Collection; import java.util.List; import java.util.Map; @@ -35,9 +34,6 @@ import com.caucho.hessian.client.HessianProxyFactory; import hu.midori.kosmos.protocol.JiraService; -import hu.midori.kosmos.protocol.SvnService; -import hu.midori.kosmos.server.jira.JiraServiceImpl; -import hu.midori.kosmos.model.JiraProject; /** * @author Pawel Wrzeszcz @@ -88,11 +84,8 @@ HessianProxyFactory factory = new HessianProxyFactory(); - String serviceUrl = "http://localhost:8080/kosmos-server/kosmos-services/jira-service"; - - try { - service = (JiraService) factory.create(JiraService.class, serviceUrl); + service = (JiraService) factory.create(JiraService.class, serviceURL); if (service != null) { System.out.println("KOSMOS service: " + service.toString()); @@ -109,21 +102,11 @@ } Map jiraMap = (Map) jiraProjects.get(0); - printJira(jiraMap); return jiraMap; } + - private void printJira(Map jiraMap) { //debug - if (jiraMap != null) { - - for (Iterator iter = jiraMap.keySet().iterator(); iter.hasNext();) { - Object obj = (Object) iter.next(); - System.out.println("object: " + obj + " (" + obj.getClass() +")" + " binding " + jiraMap.get(obj)); - } - } - } - public int getValue(String projectId) { if (!projectsMaps.containsKey(projectId)) { Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 21:42:18 UTC (rev 1732) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 22:54:08 UTC (rev 1733) @@ -22,15 +22,10 @@ package org.jboss.forge.status.plugins.svn; -import org.jboss.forge.common.projects.Projects; -import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; -import org.jboss.forge.status.plugins.StatusPlugin; - +import org.jboss.forge.status.KosmosStatusPlugin; import org.jboss.logging.Logger; import java.net.MalformedURLException; -import java.util.HashMap; -import java.util.Iterator; import java.util.List; import java.util.Map; @@ -42,48 +37,22 @@ * @author Pawel Wrzeszcz */ -public abstract class SvnStatusPlugin extends StatusPlugin { +public abstract class SvnStatusPlugin extends KosmosStatusPlugin { private static final String SVN_SERVICE_PROPERTY = "svn-service"; - private Map<String,Map> projectsMaps; + protected String getKosmosServiceProperty() { return SVN_SERVICE_PROPERTY;}; - private String serviceURL; - protected Logger log; public SvnStatusPlugin() { super(); log = Logger.getLogger(this.getClass()); - projectsMaps = new HashMap<String,Map>(); } - - public void init(String name, String id, Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { - super.init(name, id, projects,properties); - getProperties(properties); - - } - - private void getProperties(Map<String, String> properties) throws InvalidPluginPropertiesException { - if (properties == null) { - throw new InvalidPluginPropertiesException("Missing properties for " + getName() + " plugin."); - } - - serviceURL = properties.get(SVN_SERVICE_PROPERTY); - - if (serviceURL == null) { - throw new InvalidPluginPropertiesException( - "Missing " + SVN_SERVICE_PROPERTY + " property for " + getName() + " plugin."); - } - } + protected Map getProjectMap(String projectId) { - protected abstract int getPluginSpecyficValue(Map projectMap); - protected abstract int getPluginSpecyficDefaultValue(); - - protected Map getSvnRepository(String projectId) { - // Get project repository URL String repoURL = getRepoURL(projectId); @@ -113,45 +82,14 @@ return null; } - repositoryMap = (Map) repositories.get(0); - //printRepo(repositoryMap); return repositoryMap; } - private void printRepo(Map repositoryMap) { //debug - if (repositoryMap != null) { - - for (Iterator iter = repositoryMap.keySet().iterator(); iter.hasNext();) { - Object obj = (Object) iter.next(); - System.out.println("object: " + obj + " binding: " + repositoryMap.get(obj)); - } - } - } - - public int getValue(String projectId) { - - if (!projectsMaps.containsKey(projectId)) { - projectsMaps.put(projectId, getProjectMap(projectId)); - } - - Map projectMap = projectsMaps.get(projectId); - - if (projectMap == null) { - return getPluginSpecyficDefaultValue(); - } - - return getPluginSpecyficValue(projectMap); - } - private String getRepoURL(String projectId) { String repoURL = projects.getProjectProperty(projectId, "svn-repo"); return (repoURL == "" ? null : repoURL); } - private Map getProjectMap(String projectId) { - return getSvnRepository(projectId); - } - } |
From: <jbo...@li...> - 2005-12-07 21:42:25
|
Author: adamw Date: 2005-12-07 16:42:18 -0500 (Wed, 07 Dec 2005) New Revision: 1732 Added: trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/MultiSaveTest.java Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java Log: http://jira.jboss.com/jira/browse/JBSHOTOKU-37 : multi-save test Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-07 21:34:26 UTC (rev 1731) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-07 21:42:18 UTC (rev 1732) @@ -391,13 +391,38 @@ } } + public static void multiSaveTest() throws Exception { + try { + Directory newDir1 = cm.getRootDirectory().newDirectory(TEST_DIR); + + Directory newDir2 = newDir1.newDirectory("a/b/c"); + Node newNode1 = newDir1.newNode("a/b/d/n1"); + + Directory newDir3 = newDir2.newDirectory("z"); + Node newNode2 = newDir3.newNode("aaa"); + + newNode2.setContent("P"); + + cm.save(newDir1, newDir2, newNode1, newNode2, ""); + + System.out.println("P".equals(cm.getNode(TEST_DIR + "/a/b/c/z/aaa"))); + } finally { + try { + cm.getDirectory(TEST_DIR).delete(); + } catch (ResourceDoesNotExist e) { + // If it does not exist - doing nothing. + } + } + } + public static void main(String[] argv) throws Exception { long now = Calendar.getInstance().getTimeInMillis(); ContentManager.setup(); cm = ContentManager.getContentManager("shotoku-test"); - testInject(); + multiSaveTest(); + //testInject(); //testNested(); //addDelDir(); //contentSetTest(); Added: trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/MultiSaveTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/MultiSaveTest.java 2005-12-07 21:34:26 UTC (rev 1731) +++ trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/MultiSaveTest.java 2005-12-07 21:42:18 UTC (rev 1732) @@ -0,0 +1,60 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.shotoku.test; + +import org.jboss.shotoku.Directory; +import org.jboss.shotoku.Node; +import org.jboss.shotoku.exceptions.RepositoryException; +import org.jboss.shotoku.exceptions.ResourceAlreadyExists; +import org.jboss.shotoku.exceptions.ResourceDoesNotExist; +import org.jboss.shotoku.exceptions.SaveException; + +/** + * @author Adam Warski (ad...@as...) + */ +public class MultiSaveTest extends ShotokuTest { + private final static String TEST_DIR = "multi-save-test"; + + public void testAddAfterDelete() throws ResourceAlreadyExists, ResourceDoesNotExist, RepositoryException, SaveException { + Directory newDir1 = cm.getRootDirectory().newDirectory(TEST_DIR); + + Directory newDir2 = newDir1.newDirectory("a/b/c"); + Node newNode1 = newDir1.newNode("a/b/d/n1"); + + Directory newDir3 = newDir2.newDirectory("z"); + Node newNode2 = newDir3.newNode("aaa"); + + newNode2.setContent("P"); + + cm.save(newDir1, newDir2, newNode1, newNode2, ""); + + assertTrue("P".equals(cm.getNode(TEST_DIR + "/a/b/c/z/aaa").getContent())); + } + + protected void tearDown() throws Exception { + try { + cm.getDirectory(TEST_DIR).delete(); + } catch (ResourceDoesNotExist e) { + // If it does not exist - doing nothing. + } + } +} |
From: <jbo...@li...> - 2005-12-07 21:34:39
|
Author: wrzep Date: 2005-12-07 16:34:26 -0500 (Wed, 07 Dec 2005) New Revision: 1731 Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ResolvedIssuesStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java Log: first kosmos jira service plugin http://jira.jboss.com/jira/browse/JBLAB-415 Pawel Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java 2005-12-07 20:42:21 UTC (rev 1730) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java 2005-12-07 21:34:26 UTC (rev 1731) @@ -22,11 +22,14 @@ package org.jboss.forge.status.plugins.jira; +import java.util.HashMap; import java.util.Iterator; import java.util.Collection; import java.util.List; +import java.util.Map; import org.jboss.forge.common.projects.Projects; +import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; import org.jboss.forge.status.plugins.StatusPlugin; import com.caucho.hessian.client.HessianProxyFactory; @@ -42,16 +45,45 @@ public abstract class JiraStatusPlugin extends StatusPlugin { + private static final String JIRA_SERVICE_PROPERTY = "jira-service"; + + private Map<String,Map> projectsMaps; + + private String serviceURL; + public JiraStatusPlugin() { super(); + + projectsMaps = new HashMap<String,Map>(); } - protected Collection<JiraProject> getJiraProjects() { + public void init(String name, String id, Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { + super.init(name, id, projects,properties); + + getProperties(properties); + + } + private void getProperties(Map<String, String> properties) throws InvalidPluginPropertiesException { + if (properties == null) { + throw new InvalidPluginPropertiesException("Missing properties for " + getName() + " plugin."); + } + + serviceURL = properties.get(JIRA_SERVICE_PROPERTY); + + if (serviceURL == null) { + throw new InvalidPluginPropertiesException( + "Missing " + JIRA_SERVICE_PROPERTY + " property for " + getName() + " plugin."); + } + } + + protected abstract int getPluginSpecyficValue(Map projectMap); + protected abstract int getPluginSpecyficDefaultValue(); + + protected Map getJiraProject(String projectId) { //Get the projects from kosmo server - Collection<JiraProject> jiraProjects = null; + List jiraProjects = null; - System.out.println("KOSMOS 00"); JiraService service = null; HessianProxyFactory factory = new HessianProxyFactory(); @@ -60,38 +92,51 @@ try { - - System.out.println("KOSMOS 01"); service = (JiraService) factory.create(JiraService.class, serviceUrl); + if (service != null) { System.out.println("KOSMOS service: " + service.toString()); } else { System.out.println("KOSMOS service == null"); } - /* - System.out.println("***\nKOSMOS atlassian\n***"); - jiraProjects = service.getProjects("http://jira.atlassian.com"); - - System.out.println("***\nKOSMOS jboss\n***"); - jiraProjects = service.getProjects("http://jira.jboss.com"); - */ - - System.out.println("***\nKOSMOS jblab\n***"); jiraProjects = service.getProjects("http://jira.jboss.com/jira/browse/JBLAB"); System.out.println("class: " + service.getProjects("http://jira.jboss.com/jira/browse/JBLAB").getClass()); - System.out.println("KOSMOS FF"); - for (JiraProject project : jiraProjects) { - - System.out.println("project " + project.getName() + " / " + project.getKey()); - } } catch (Exception e) { e.printStackTrace(); } - return jiraProjects; + Map jiraMap = (Map) jiraProjects.get(0); + printJira(jiraMap); + + return jiraMap; } + private void printJira(Map jiraMap) { //debug + if (jiraMap != null) { + + for (Iterator iter = jiraMap.keySet().iterator(); iter.hasNext();) { + Object obj = (Object) iter.next(); + System.out.println("object: " + obj + " (" + obj.getClass() +")" + " binding " + jiraMap.get(obj)); + } + } + } + + public int getValue(String projectId) { + + if (!projectsMaps.containsKey(projectId)) { + projectsMaps.put(projectId, getJiraProject(projectId)); + } + + Map projectMap = projectsMaps.get(projectId); + + if (projectMap == null) { + return getPluginSpecyficDefaultValue(); + } + + return getPluginSpecyficValue(projectMap); + } + } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ResolvedIssuesStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ResolvedIssuesStatusPlugin.java 2005-12-07 20:42:21 UTC (rev 1730) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ResolvedIssuesStatusPlugin.java 2005-12-07 21:34:26 UTC (rev 1731) @@ -22,23 +22,23 @@ package org.jboss.forge.status.plugins.jira; +import java.util.Map; + /** * @author Pawel Wrzeszcz */ public class ResolvedIssuesStatusPlugin extends JiraStatusPlugin { - - protected static String PLUGIN_NAME = "Resolved issues"; - protected static String PLUGIN_ID = "resoved"; - - public String getId() { return PLUGIN_ID; }; - public String getName() { return PLUGIN_NAME; }; - - public ResolvedIssuesStatusPlugin() { - super(); - getJiraProjects(); + + @Override + protected int getPluginSpecyficValue(Map projectMap) { + Integer resolvedIssues = (Integer) projectMap.get("resolvedIssues"); + return resolvedIssues.intValue(); } + + @Override + protected int getPluginSpecyficDefaultValue() { + return 0; + } - public int getValue(String projectId) { return 0;} ; - } \ No newline at end of file Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 20:42:21 UTC (rev 1730) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 21:34:26 UTC (rev 1731) @@ -26,6 +26,8 @@ import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; import org.jboss.forge.status.plugins.StatusPlugin; +import org.jboss.logging.Logger; + import java.net.MalformedURLException; import java.util.HashMap; import java.util.Iterator; @@ -45,13 +47,15 @@ private static final String SVN_SERVICE_PROPERTY = "svn-service"; private Map<String,Map> projectsMaps; - private String serviceURL; + protected Logger log; + public SvnStatusPlugin() { super(); + log = Logger.getLogger(this.getClass()); projectsMaps = new HashMap<String,Map>(); } @@ -96,7 +100,7 @@ try { service = (SvnService) factory.create(SvnService.class, serviceURL); } catch (MalformedURLException e) { - //log.error("Can not connect to kosmos svn service: " + serviceURL); + log.error("Can not connect to kosmos svn service: " + serviceURL); return null; } @@ -105,7 +109,7 @@ try { repositories = service.getRepositories(repoURL); } catch (Exception e) { - //log.error("Can not analyze repo: " + repoURL, e); + log.error("Can not analyze repo: " + repoURL, e); return null; } |
Author: adamw Date: 2005-12-07 15:52:04 -0500 (Wed, 07 Dec 2005) New Revision: 1729 Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/DeleteException.java trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/ResourceDeleted.java trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/SaveException.java trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Constants.java trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Pair.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnResource.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/content/FileNodeContent.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddDirectoryOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddFileOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyDirectoryOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyFileOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/PathsStack.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/WorkspaceMediator.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/DummyService.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StaticTest.java trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/ModifyContentTest.java Log: http://jira.jboss.com/jira/browse/JBSHOTOKU-37 : license headers Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/DeleteException.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/DeleteException.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/DeleteException.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,6 +1,31 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.exceptions; // TODO +/** + * + * @author Adam Warski (ad...@as...) + */ public class DeleteException extends RuntimeException { public DeleteException(Exception e) { super(e); Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/ResourceDeleted.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/ResourceDeleted.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/ResourceDeleted.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,5 +1,30 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.exceptions; +/** + * + * @author Adam Warski (ad...@as...) + */ public class ResourceDeleted extends RuntimeException { public ResourceDeleted(String msg) { super(msg); Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/SaveException.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/SaveException.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/exceptions/SaveException.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,6 +1,31 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.exceptions; // TODO +/** + * + * @author Adam Warski (ad...@as...) + */ public class SaveException extends RuntimeException { public SaveException(Exception e) { super(e); Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Constants.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Constants.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Constants.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -22,7 +22,7 @@ package org.jboss.shotoku.tools; /** - * + * Constatns used in Shotoku classes. * @author Adam Warski (ad...@as...) */ public class Constants { Modified: trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Pair.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Pair.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-base/src/java/org/jboss/shotoku/tools/Pair.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -25,7 +25,7 @@ * A pair of objects. * @param <T1> * @param <T2> - * @author adamw + * @author Adam Warski (ad...@as...) */ public class Pair<T1 extends Object, T2 extends Object> { private T1 obj1; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/AbstractSvnResource.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -194,8 +194,6 @@ editor.abortEdit(); } catch (SVNException e1) { // Can't do much here. - // TODO - e1.printStackTrace(); } throw new DeleteException(e); } Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectory.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnDirectory.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn; import org.jboss.shotoku.Directory; @@ -2,2 +23,5 @@ +/** + * @author Adam Warski (ad...@as...) + */ public interface SvnDirectory extends SvnResource, Directory { Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnFileDirectory.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn; import java.io.File; @@ -3,4 +24,7 @@ import java.io.FilenameFilter; +/** + * @author Adam Warski (ad...@as...) + */ public class SvnFileDirectory extends AbstractSvnDirectory { /* Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnNode.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn; import org.jboss.shotoku.Node; @@ -3,4 +24,7 @@ import org.jboss.shotoku.svn.content.NodeContent; +/** + * @author Adam Warski (ad...@as...) + */ public interface SvnNode extends SvnResource, Node { public void setNodeContent(NodeContent content); Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnRepoDirectory.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn; import java.util.ArrayList; @@ -5,6 +26,9 @@ import java.util.List; import java.util.Map; +/** + * @author Adam Warski (ad...@as...) + */ public class SvnRepoDirectory extends AbstractSvnDirectory { /* * INITIALIZATION AND HELPER METHODS Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnResource.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnResource.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/SvnResource.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn; import java.util.Collection; @@ -6,6 +27,9 @@ import org.jboss.shotoku.Resource; import org.jboss.shotoku.svn.operations.ResourceOperation; +/** + * @author Adam Warski (ad...@as...) + */ public interface SvnResource extends Resource { public boolean checkForChanges(); Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/content/FileNodeContent.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/content/FileNodeContent.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/content/FileNodeContent.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.content; import java.io.File; @@ -10,6 +31,9 @@ import org.jboss.shotoku.exceptions.RepositoryException; +/** + * @author Adam Warski (ad...@as...) + */ public class FileNodeContent extends NodeContent { private File file; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddDirectoryOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddDirectoryOperation.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddDirectoryOperation.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.operations; import org.jboss.shotoku.svn.SvnService; @@ -5,6 +26,9 @@ import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.io.ISVNEditor; +/** + * @author Adam Warski (ad...@as...) + */ public class AddDirectoryOperation extends ResourceOperation { private String parentPath; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddFileOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddFileOperation.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/AddFileOperation.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.operations; import org.jboss.shotoku.svn.SvnService; @@ -5,6 +26,9 @@ import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.io.ISVNEditor; +/** + * @author Adam Warski (ad...@as...) + */ public class AddFileOperation extends ResourceOperation { private String parentPath; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyDirectoryOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyDirectoryOperation.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyDirectoryOperation.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.operations; import java.util.Map; @@ -7,6 +28,9 @@ import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.io.ISVNEditor; +/** + * @author Adam Warski (ad...@as...) + */ public class ModifyDirectoryOperation extends ResourceOperation { private Map<String, String> properties; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyFileOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyFileOperation.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ModifyFileOperation.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.operations; import java.io.IOException; @@ -13,6 +34,9 @@ import org.tmatesoft.svn.core.io.diff.SVNDiffWindow; import org.tmatesoft.svn.core.io.diff.SVNDiffWindowBuilder; +/** + * @author Adam Warski (ad...@as...) + */ public class ModifyFileOperation extends ResourceOperation { private long contentLength; private Map<String, String> properties; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/PathsStack.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/PathsStack.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/PathsStack.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.operations; import java.util.Stack; @@ -6,6 +27,9 @@ import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.io.ISVNEditor; +/** + * @author Adam Warski (ad...@as...) + */ public class PathsStack { private Stack<String> pathsStack; private boolean fileOnTop; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/ResourceOperation.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.operations; import org.jboss.shotoku.svn.SvnService; @@ -5,7 +26,7 @@ /** * An base class for operations on the repository. - * @author adamw + * @author Adam Warski (ad...@as...) */ public abstract class ResourceOperation implements Comparable<ResourceOperation> { protected enum OpCode { Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/WorkspaceMediator.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/WorkspaceMediator.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/svn/operations/WorkspaceMediator.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.svn.operations; import java.io.ByteArrayInputStream; @@ -11,6 +32,9 @@ import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.io.ISVNWorkspaceMediator; +/** + * @author Adam Warski (ad...@as...) + */ public class WorkspaceMediator implements ISVNWorkspaceMediator { private Map myTmpFiles = new HashMap(); Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/CommitTest.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.test; import java.io.ByteArrayInputStream; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/DummyService.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/DummyService.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/DummyService.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.test; import java.util.HashSet; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StandaloneTest.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.test; import java.util.Arrays; Modified: trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StaticTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StaticTest.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-svn/src/java/org/jboss/shotoku/test/StaticTest.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.jboss.shotoku.test; import java.lang.reflect.InvocationTargetException; Modified: trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/ModifyContentTest.java =================================================================== --- trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/ModifyContentTest.java 2005-12-07 20:47:42 UTC (rev 1728) +++ trunk/forge/portal-extensions/shotoku/shotoku-test/src/java/org/jboss/shotoku/test/ModifyContentTest.java 2005-12-07 20:52:04 UTC (rev 1729) @@ -90,8 +90,7 @@ try { cm.getNode(TEST_FILE).delete(); } catch (Exception e) { - // TODO - e.printStackTrace(); + } } } |
From: <jbo...@li...> - 2005-12-07 20:47:50
|
Author: wrzep Date: 2005-12-07 15:47:42 -0500 (Wed, 07 Dec 2005) New Revision: 1728 Added: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ResolvedIssuesStatusPlugin.java Removed: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JiraStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/ResolvedIssuesStatusPlugin.java Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java Log: separate dir for jira plugins http://jira.jboss.com/jira/browse/JBLAB-415 Pawel Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-07 20:25:30 UTC (rev 1727) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-07 20:47:42 UTC (rev 1728) @@ -90,7 +90,7 @@ private void initPluginElements() { pluginsElements = new HashSet<String>(); - pluginsElements.add(PLUGIN_ID_ELEMENT); //TODO currently id is NOT used!! + pluginsElements.add(PLUGIN_ID_ELEMENT); pluginsElements.add(PLUGIN_NAME_ELEMENT); pluginsElements.add(PLUGIN_CLASS_ELEMENT); pluginsElements.add(PLUGIN_WEIGHT_ELEMENT); Deleted: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JiraStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JiraStatusPlugin.java 2005-12-07 20:25:30 UTC (rev 1727) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JiraStatusPlugin.java 2005-12-07 20:47:42 UTC (rev 1728) @@ -1,96 +0,0 @@ -/* - * JBoss, Home of Professional Open Source - * Copyright 2005, JBoss Inc., and individual contributors as indicated - * by the @authors tag. See the copyright.txt in the distribution for a - * full listing of individual contributors. - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. - */ - -package org.jboss.forge.status.plugins; - -import java.util.Iterator; -import java.util.Collection; -import java.util.List; - -import org.jboss.forge.common.projects.Projects; - -import com.caucho.hessian.client.HessianProxyFactory; - -import hu.midori.kosmos.protocol.JiraService; -import hu.midori.kosmos.protocol.SvnService; -import hu.midori.kosmos.server.jira.JiraServiceImpl; -import hu.midori.kosmos.model.JiraProject; - -/** -* @author Pawel Wrzeszcz -*/ - -public abstract class JiraStatusPlugin extends StatusPlugin { - - public JiraStatusPlugin() { - super(); - } - - protected Collection<JiraProject> getJiraProjects() { - //Get the projects from kosmo server - - Collection<JiraProject> jiraProjects = null; - - System.out.println("KOSMOS 00"); - JiraService service = null; - - HessianProxyFactory factory = new HessianProxyFactory(); - - String serviceUrl = "http://localhost:8080/kosmos-server/kosmos-services/jira-service"; - - - try { - - System.out.println("KOSMOS 01"); - service = (JiraService) factory.create(JiraService.class, serviceUrl); - if (service != null) { - System.out.println("KOSMOS service: " + service.toString()); - } else { - System.out.println("KOSMOS service == null"); - } - /* - System.out.println("***\nKOSMOS atlassian\n***"); - jiraProjects = service.getProjects("http://jira.atlassian.com"); - - - System.out.println("***\nKOSMOS jboss\n***"); - jiraProjects = service.getProjects("http://jira.jboss.com"); - */ - - System.out.println("***\nKOSMOS jblab\n***"); - jiraProjects = service.getProjects("http://jira.jboss.com/jira/browse/JBLAB"); - - System.out.println("class: " + service.getProjects("http://jira.jboss.com/jira/browse/JBLAB").getClass()); - System.out.println("KOSMOS FF"); - - for (JiraProject project : jiraProjects) { - - System.out.println("project " + project.getName() + " / " + project.getKey()); - } - } catch (Exception e) { - e.printStackTrace(); - } - - return jiraProjects; - } - -} Deleted: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/ResolvedIssuesStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/ResolvedIssuesStatusPlugin.java 2005-12-07 20:25:30 UTC (rev 1727) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/ResolvedIssuesStatusPlugin.java 2005-12-07 20:47:42 UTC (rev 1728) @@ -1,44 +0,0 @@ -/* - * JBoss, Home of Professional Open Source - * Copyright 2005, JBoss Inc., and individual contributors as indicated - * by the @authors tag. See the copyright.txt in the distribution for a - * full listing of individual contributors. - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. - */ - -package org.jboss.forge.status.plugins; - -/** -* @author Pawel Wrzeszcz -*/ - -public class ResolvedIssuesStatusPlugin extends JiraStatusPlugin { - - protected static String PLUGIN_NAME = "Resolved issues"; - protected static String PLUGIN_ID = "resoved"; - - public String getId() { return PLUGIN_ID; }; - public String getName() { return PLUGIN_NAME; }; - - public ResolvedIssuesStatusPlugin() { - super(); - getJiraProjects(); - } - - public int getValue(String projectId) { return 0;} ; - -} \ No newline at end of file Copied: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java (from rev 1726, trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JiraStatusPlugin.java) =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JiraStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/JiraStatusPlugin.java 2005-12-07 20:47:42 UTC (rev 1728) @@ -0,0 +1,97 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package org.jboss.forge.status.plugins.jira; + +import java.util.Iterator; +import java.util.Collection; +import java.util.List; + +import org.jboss.forge.common.projects.Projects; +import org.jboss.forge.status.plugins.StatusPlugin; + +import com.caucho.hessian.client.HessianProxyFactory; + +import hu.midori.kosmos.protocol.JiraService; +import hu.midori.kosmos.protocol.SvnService; +import hu.midori.kosmos.server.jira.JiraServiceImpl; +import hu.midori.kosmos.model.JiraProject; + +/** +* @author Pawel Wrzeszcz +*/ + +public abstract class JiraStatusPlugin extends StatusPlugin { + + public JiraStatusPlugin() { + super(); + } + + protected Collection<JiraProject> getJiraProjects() { + //Get the projects from kosmo server + + Collection<JiraProject> jiraProjects = null; + + System.out.println("KOSMOS 00"); + JiraService service = null; + + HessianProxyFactory factory = new HessianProxyFactory(); + + String serviceUrl = "http://localhost:8080/kosmos-server/kosmos-services/jira-service"; + + + try { + + System.out.println("KOSMOS 01"); + service = (JiraService) factory.create(JiraService.class, serviceUrl); + if (service != null) { + System.out.println("KOSMOS service: " + service.toString()); + } else { + System.out.println("KOSMOS service == null"); + } + /* + System.out.println("***\nKOSMOS atlassian\n***"); + jiraProjects = service.getProjects("http://jira.atlassian.com"); + + + System.out.println("***\nKOSMOS jboss\n***"); + jiraProjects = service.getProjects("http://jira.jboss.com"); + */ + + System.out.println("***\nKOSMOS jblab\n***"); + jiraProjects = service.getProjects("http://jira.jboss.com/jira/browse/JBLAB"); + + System.out.println("class: " + service.getProjects("http://jira.jboss.com/jira/browse/JBLAB").getClass()); + System.out.println("KOSMOS FF"); + + for (JiraProject project : jiraProjects) { + + System.out.println("project " + project.getName() + " / " + project.getKey()); + } + } catch (Exception e) { + e.printStackTrace(); + } + + return jiraProjects; + } + +} Copied: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ResolvedIssuesStatusPlugin.java (from rev 1726, trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/ResolvedIssuesStatusPlugin.java) =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/ResolvedIssuesStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/jira/ResolvedIssuesStatusPlugin.java 2005-12-07 20:47:42 UTC (rev 1728) @@ -0,0 +1,44 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2005, JBoss Inc., and individual contributors as indicated + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package org.jboss.forge.status.plugins.jira; + +/** +* @author Pawel Wrzeszcz +*/ + +public class ResolvedIssuesStatusPlugin extends JiraStatusPlugin { + + protected static String PLUGIN_NAME = "Resolved issues"; + protected static String PLUGIN_ID = "resoved"; + + public String getId() { return PLUGIN_ID; }; + public String getName() { return PLUGIN_NAME; }; + + public ResolvedIssuesStatusPlugin() { + super(); + getJiraProjects(); + } + + public int getValue(String projectId) { return 0;} ; + +} \ No newline at end of file |
From: <jbo...@li...> - 2005-12-07 18:53:55
|
Author: wrzep Date: 2005-12-07 13:53:45 -0500 (Wed, 07 Dec 2005) New Revision: 1726 Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/OneStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast31DaysStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast7DaysStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTodayStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTotalStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/RevisionStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/TotalRepoSizeStatusPlugin.java Log: passing plugin name and id to the plugin instance http://jira.jboss.com/jira/browse/JBLAB-415 Pawel Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -181,9 +181,10 @@ private StatusPlugin getPlugin(Node pluginNode) { Map<String,Node> pluginProperties = getChildNodesMap(pluginNode, pluginsElements); - // Get plugin name - String pluginClassString = XmlTools.unmarshallText(pluginProperties.get("class")); - System.out.println("pluginClassString " + pluginClassString); + // Get plugin info from pluginNode + String pluginClassString = XmlTools.unmarshallText(pluginProperties.get(PLUGIN_CLASS_ELEMENT)); + String pluginName = XmlTools.unmarshallText(pluginProperties.get(PLUGIN_NAME_ELEMENT)); + String pluginId = XmlTools.unmarshallText(pluginProperties.get(PLUGIN_ID_ELEMENT)); // Get plugin class Class pluginClass = null; @@ -205,15 +206,14 @@ // Get plugin properies node Map<String,String> pluginSpecificPropertiesMap = null; - Node pluginSpecificPropertiesNode = pluginProperties.get("properties"); + Node pluginSpecificPropertiesNode = pluginProperties.get(PLUGIN_PROPERTIES_ELEMENT); if (pluginSpecificPropertiesNode != null) { pluginSpecificPropertiesMap = getChildNodesStringMap(pluginSpecificPropertiesNode); } - // Initialize plugin try { - plugin.init(projects, pluginSpecificPropertiesMap); + plugin.init(pluginName, pluginId, projects, pluginSpecificPropertiesMap); } catch (InvalidPluginPropertiesException e) { log.warn(e); return null; Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/OneStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/OneStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/OneStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -28,16 +28,10 @@ public class OneStatusPlugin extends StatusPlugin { - protected static String PLUGIN_NAME = "One"; - protected static String PLUGIN_ID = "one"; - public OneStatusPlugin() { super(); }; - public String getId() { return PLUGIN_ID; }; - public String getName() { return PLUGIN_NAME; }; - public int getValue(String projectId) { return -1; } ; } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -35,13 +35,18 @@ protected Projects projects; protected Map properties; - public void init(Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { + protected String name; + protected String id; + + public void init(String name, String id, Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { this.projects = projects; this.properties = properties; + this.name = name; + this.id = id; } - public abstract String getId(); - public abstract String getName(); public abstract int getValue(String projectId); + public String getId() { return id; }; + public String getName() { return name; }; } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast31DaysStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast31DaysStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast31DaysStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -30,12 +30,6 @@ public class CommitsLast31DaysStatusPlugin extends SvnStatusPlugin { - protected static String PLUGIN_NAME = "Commits Last 31 Days"; - protected static String PLUGIN_ID = "commits31"; - - public String getId() { return PLUGIN_ID; } - public String getName() { return PLUGIN_NAME; } - public CommitsLast31DaysStatusPlugin() { super(); } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast7DaysStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast7DaysStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsLast7DaysStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -30,12 +30,6 @@ public class CommitsLast7DaysStatusPlugin extends SvnStatusPlugin { - protected static String PLUGIN_NAME = "Commits Last 7 Days"; - protected static String PLUGIN_ID = "commits7"; - - public String getId() { return PLUGIN_ID; } - public String getName() { return PLUGIN_NAME; } - public CommitsLast7DaysStatusPlugin() { super(); } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTodayStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTodayStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTodayStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -30,12 +30,6 @@ public class CommitsTodayStatusPlugin extends SvnStatusPlugin { - protected static String PLUGIN_NAME = "Commits Today"; - protected static String PLUGIN_ID = "commitstoday"; - - public String getId() { return PLUGIN_ID; } - public String getName() { return PLUGIN_NAME; } - public CommitsTodayStatusPlugin() { super(); } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTotalStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTotalStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/CommitsTotalStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -30,12 +30,6 @@ public class CommitsTotalStatusPlugin extends SvnStatusPlugin { - protected static String PLUGIN_NAME = "Commits total"; - protected static String PLUGIN_ID = "commitstotal"; - - public String getId() { return PLUGIN_ID; } - public String getName() { return PLUGIN_NAME; } - public CommitsTotalStatusPlugin() { super(); } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/RevisionStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/RevisionStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/RevisionStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -30,12 +30,6 @@ public class RevisionStatusPlugin extends SvnStatusPlugin { - protected static String PLUGIN_NAME = "Revision no"; - protected static String PLUGIN_ID = "revision"; - - public String getId() { return PLUGIN_ID; } - public String getName() { return PLUGIN_NAME; } - public RevisionStatusPlugin() { super(); } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -55,8 +55,8 @@ projectsMaps = new HashMap<String,Map>(); } - public void init(Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { - super.init(projects,properties); + public void init(String name, String id, Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { + super.init(name, id, projects,properties); getProperties(properties); Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/TotalRepoSizeStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/TotalRepoSizeStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/TotalRepoSizeStatusPlugin.java 2005-12-07 18:53:45 UTC (rev 1726) @@ -30,12 +30,6 @@ public class TotalRepoSizeStatusPlugin extends SvnStatusPlugin { - protected static String PLUGIN_NAME = "Total File Size"; - protected static String PLUGIN_ID = "total_file_size"; - - public String getId() { return PLUGIN_ID; } - public String getName() { return PLUGIN_NAME; } - public TotalRepoSizeStatusPlugin() { super(); } |
From: <jbo...@li...> - 2005-12-07 18:32:40
|
Author: wrzep Date: 2005-12-07 13:32:30 -0500 (Wed, 07 Dec 2005) New Revision: 1725 Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java Log: missing/incorrect plugin properties handling one more time http://jira.jboss.com/jira/browse/JBLAB-415 Pawel Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-07 18:08:17 UTC (rev 1724) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/Status.java 2005-12-07 18:32:30 UTC (rev 1725) @@ -43,8 +43,9 @@ import org.w3c.dom.NodeList; //import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; +import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; import org.jboss.forge.status.plugins.StatusPlugin; -//import org.jboss.logging.Logger; +import org.jboss.logging.Logger; /** * @author Pawel Wrzeszcz @@ -65,7 +66,7 @@ private Projects projects; private List<StatusPlugin> plugins; - //private Logger log; + private Logger log; private HashSet<String> pluginsElements; @@ -73,7 +74,7 @@ this.portalName = portalName; this.scoreAlgorithm = scoreAlgorithm; - //log = Logger.getLogger(this.getClass()); + log = Logger.getLogger(this.getClass()); initPluginElements(); // Get the projects @@ -189,7 +190,7 @@ try { pluginClass = Class.forName(pluginClassString); } catch (ClassNotFoundException e) { - //log.error("Plugin class not found: " + pluginClassString); + log.error("Plugin class not found: " + pluginClassString); return null; } @@ -198,7 +199,7 @@ try { plugin = (StatusPlugin) pluginClass.newInstance(); } catch (Exception e) { - //log.error("Plugin class: " + pluginClassString + ". Instantination failed.", e); + log.error("Plugin class: " + pluginClassString + ". Instantination failed.", e); return null; } @@ -211,12 +212,12 @@ // Initialize plugin - //try { + try { plugin.init(projects, pluginSpecificPropertiesMap); - //} catch (InvalidPluginPropertiesException e) { - //log.warn(e); - //return null; - //} + } catch (InvalidPluginPropertiesException e) { + log.warn(e); + return null; + } return plugin; } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java 2005-12-07 18:08:17 UTC (rev 1724) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/StatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) @@ -35,7 +35,7 @@ protected Projects projects; protected Map properties; - public void init(Projects projects, Map<String,String> properties)/* throws InvalidPluginPropertiesException */{ + public void init(Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { this.projects = projects; this.properties = properties; } Modified: trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 18:08:17 UTC (rev 1724) +++ trunk/forge/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/svn/SvnStatusPlugin.java 2005-12-07 18:32:30 UTC (rev 1725) @@ -23,6 +23,7 @@ package org.jboss.forge.status.plugins.svn; import org.jboss.forge.common.projects.Projects; +import org.jboss.forge.status.plugins.InvalidPluginPropertiesException; import org.jboss.forge.status.plugins.StatusPlugin; import java.net.MalformedURLException; @@ -31,12 +32,9 @@ import java.util.List; import java.util.Map; -//import org.jboss.logging.Logger; - import com.caucho.hessian.client.HessianProxyFactory; import hu.midori.kosmos.protocol.SvnService; -//import hu.midori.kosmos.model.SvnRepository; /** * @author Pawel Wrzeszcz @@ -47,36 +45,34 @@ private static final String SVN_SERVICE_PROPERTY = "svn-service"; private Map<String,Map> projectsMaps; + - //private Logger log; - private String serviceURL; public SvnStatusPlugin() { super(); projectsMaps = new HashMap<String,Map>(); - //log = Logger.getLogger(this.getClass()); } - public void init(Projects projects, Map<String,String> properties) /*throws InvalidPluginPropertiesException*/ { + public void init(Projects projects, Map<String,String> properties) throws InvalidPluginPropertiesException { super.init(projects,properties); getProperties(properties); } - private void getProperties(Map<String, String> properties) /*throws InvalidPluginPropertiesException*/ { - /*if (properties == null) { + private void getProperties(Map<String, String> properties) throws InvalidPluginPropertiesException { + if (properties == null) { throw new InvalidPluginPropertiesException("Missing properties for " + getName() + " plugin."); } - */ + serviceURL = properties.get(SVN_SERVICE_PROPERTY); - /* + if (serviceURL == null) { throw new InvalidPluginPropertiesException( "Missing " + SVN_SERVICE_PROPERTY + " property for " + getName() + " plugin."); - }*/ + } } protected abstract int getPluginSpecyficValue(Map projectMap); |