You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(39) |
Dec
(10) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(19) |
Feb
(150) |
Mar
(10) |
Apr
|
May
(8) |
Jun
(11) |
Jul
(27) |
Aug
(52) |
Sep
(35) |
Oct
(30) |
Nov
(18) |
Dec
(4) |
2008 |
Jan
(76) |
Feb
(121) |
Mar
(39) |
Apr
(55) |
May
(18) |
Jun
(49) |
Jul
(32) |
Aug
(4) |
Sep
(10) |
Oct
|
Nov
(3) |
Dec
(33) |
2009 |
Jan
(19) |
Feb
(87) |
Mar
(69) |
Apr
(38) |
May
(47) |
Jun
(20) |
Jul
(5) |
Aug
(76) |
Sep
(145) |
Oct
(34) |
Nov
(8) |
Dec
(68) |
2010 |
Jan
(150) |
Feb
(379) |
Mar
(191) |
Apr
(100) |
May
(525) |
Jun
(269) |
Jul
(127) |
Aug
(190) |
Sep
(190) |
Oct
(29) |
Nov
(147) |
Dec
(83) |
2011 |
Jan
(188) |
Feb
(81) |
Mar
(43) |
Apr
(97) |
May
(63) |
Jun
(129) |
Jul
(17) |
Aug
(124) |
Sep
(6) |
Oct
(20) |
Nov
(67) |
Dec
(23) |
2012 |
Jan
(6) |
Feb
(14) |
Mar
(181) |
Apr
(64) |
May
(102) |
Jun
(47) |
Jul
(26) |
Aug
(3) |
Sep
(1) |
Oct
(14) |
Nov
(13) |
Dec
(23) |
2013 |
Jan
(4) |
Feb
(14) |
Mar
(18) |
Apr
(14) |
May
(27) |
Jun
(27) |
Jul
(5) |
Aug
(2) |
Sep
(74) |
Oct
(79) |
Nov
(21) |
Dec
(97) |
2014 |
Jan
(6) |
Feb
(3) |
Mar
(8) |
Apr
|
May
(5) |
Jun
|
Jul
(9) |
Aug
(6) |
Sep
(3) |
Oct
(10) |
Nov
(6) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
(25) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <fg...@us...> - 2009-01-31 22:56:20
|
Revision: 977 http://openutils.svn.sourceforge.net/openutils/?rev=977&view=rev Author: fgiust Date: 2009-01-31 22:56:12 +0000 (Sat, 31 Jan 2009) Log Message: ----------- basic docs Modified Paths: -------------- trunk/openutils-mgnlgroovy/pom.xml trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/lifecycle/GroovyShellModule.java trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.java Added Paths: ----------- trunk/openutils-mgnlgroovy/src/site/ trunk/openutils-mgnlgroovy/src/site/apt/ trunk/openutils-mgnlgroovy/src/site/apt/index.apt trunk/openutils-mgnlgroovy/src/site/changes/ trunk/openutils-mgnlgroovy/src/site/changes/changes.xml trunk/openutils-mgnlgroovy/src/site/site.xml Modified: trunk/openutils-mgnlgroovy/pom.xml =================================================================== --- trunk/openutils-mgnlgroovy/pom.xml 2009-01-31 21:49:52 UTC (rev 976) +++ trunk/openutils-mgnlgroovy/pom.xml 2009-01-31 22:56:12 UTC (rev 977) @@ -8,7 +8,7 @@ <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> <artifactId>openutils-mgnlgroovy</artifactId> - <name>openutils-mgnlmgnlgroovy</name> + <name>openutils-mgnlgroovy</name> <version>1.1-SNAPSHOT</version> <licenses> <license> @@ -66,7 +66,7 @@ <repository> <id>repository.magnolia.info</id> <name>magnolia repository</name> - <url>http://svn.magnolia.info/maven/m2</url> + <url>http://repository.magnolia.info/m2</url> <releases> <enabled>true</enabled> </releases> Modified: trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/lifecycle/GroovyShellModule.java =================================================================== --- trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/lifecycle/GroovyShellModule.java 2009-01-31 21:49:52 UTC (rev 976) +++ trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/lifecycle/GroovyShellModule.java 2009-01-31 22:56:12 UTC (rev 977) @@ -7,22 +7,22 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + /** * @author fgrilli * @version $Id: GroovyShellModule.java 5020 2008-10-17 10:22:55Z federico.grilli $ */ public class GroovyShellModule implements ModuleLifecycle { - private static final Logger log = LoggerFactory.getLogger(GroovyShellModule.class); - @Override + private static Logger log = LoggerFactory.getLogger(GroovyShellModule.class); + public void start(ModuleLifecycleContext moduleLifecycleContext) { log.info("starting GroovyShellModule. Groovy version is " + InvokerHelper.getVersion()); - + } - @Override public void stop(ModuleLifecycleContext moduleLifecycleContext) { log.info("stopping GroovyShellModule..."); Modified: trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.java =================================================================== --- trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.java 2009-01-31 21:49:52 UTC (rev 976) +++ trunk/openutils-mgnlgroovy/src/main/java/net/sourceforge/openutils/mgnlgroovy/pages/GroovyShellPage.java 2009-01-31 22:56:12 UTC (rev 977) @@ -21,21 +21,22 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; + /** * A basic Groovy shell to be embedded in Magnolia. - * * @author fgrilli * @version $Id: GroovyShellPage.java 5074 2008-10-21 13:16:36Z federico.grilli $ */ public class GroovyShellPage extends TemplatedMVCHandler { + private static final String LINE_SEP = System.getProperty("line.separator"); - private static final String groovyVersion = InvokerHelper.getVersion(); + private static final String GROOVY_VERSION = InvokerHelper.getVersion(); private static final long serialVersionUID = 222L; - private static final Logger log = LoggerFactory.getLogger(GroovyShellPage.class); + private static Logger log = LoggerFactory.getLogger(GroovyShellPage.class); private String groovyScript; @@ -72,14 +73,14 @@ } catch (CompilationFailedException e) { - log.error("An error occurred while parsing the script. Error message is {}", new Object[] - { e.getMessage() }); + log.error("An error occurred while parsing the script. Error message is {}", new Object[]{e.getMessage() }); AlertUtil.setMessage("An error occurred while parsing the script. Error message is " + e.getMessage()); } catch (Exception e) { - log.error("An error occurred while executing the script. Error message is {}", new Object[] - { e.getMessage() }); + log.error( + "An error occurred while executing the script. Error message is {}", + new Object[]{e.getMessage() }); AlertUtil.setMessage("An error occurred while executing the script. Error message is " + e.getMessage()); } @@ -93,7 +94,7 @@ public String getGroovyVersion() { - return groovyVersion; + return GROOVY_VERSION; } public Document getMgnlFileImport() @@ -139,11 +140,9 @@ { String line = null; // not declared within while loop /* - * readLine is a bit quirky : - * it returns the content of a line MINUS the newline. - * it returns null only for the END of the stream. - * it returns an empty String if two newlines appear in a row. - */ + * readLine is a bit quirky : it returns the content of a line MINUS the newline. it returns null only + * for the END of the stream. it returns an empty String if two newlines appear in a row. + */ while ((line = input.readLine()) != null) { contents.append(line); Added: trunk/openutils-mgnlgroovy/src/site/apt/index.apt =================================================================== --- trunk/openutils-mgnlgroovy/src/site/apt/index.apt (rev 0) +++ trunk/openutils-mgnlgroovy/src/site/apt/index.apt 2009-01-31 22:56:12 UTC (rev 977) @@ -0,0 +1,22 @@ + -------------------------- + openutils-mgnlgroovy + -------------------------- + Fabrizio Giustina + -------------------------- + +About openutils-mgnlgroovy + + openutils-mgnlgroovy is a custom {{{http://www.magnolia.info}magnolia}} module which adds a console for running groovy + scripts inside the magnolia admin interface + + <<This module requires magnolia 3.6.x>> + + The module needs to be installed as usual, by declaring an additional dependency into your pom or by manually dropping the jar + into magnolia. If you are installing it manually, please note that you will also need to install other dependencies, see + the {{{dependencies.html}dependencies}} report for details + + + +Released versions + + {{{http://www.mvnrepository.com/artifact/net.sourceforge.openutils/openutils-mgnlgroovy}http://www.mvnrepository.com/artifact/net.sourceforge.openutils/openutils-mgnlgroovy}} Property changes on: trunk/openutils-mgnlgroovy/src/site/apt/index.apt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlgroovy/src/site/changes/changes.xml =================================================================== --- trunk/openutils-mgnlgroovy/src/site/changes/changes.xml (rev 0) +++ trunk/openutils-mgnlgroovy/src/site/changes/changes.xml 2009-01-31 22:56:12 UTC (rev 977) @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<!-- + "type" attribute can be: add, remove, update or fix. +--> +<document> + <properties> + <title>Changes</title> + <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> + </properties> + <body> + <release version="1.0" date="2008-12-03" description="first release"> + <action type="new" dev="fgiust">Initial public release.</action> + </release> + </body> +</document> \ No newline at end of file Property changes on: trunk/openutils-mgnlgroovy/src/site/changes/changes.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlgroovy/src/site/site.xml =================================================================== --- trunk/openutils-mgnlgroovy/src/site/site.xml (rev 0) +++ trunk/openutils-mgnlgroovy/src/site/site.xml 2009-01-31 22:56:12 UTC (rev 977) @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="Openutils mgnlgroovy"> + <publishDate position="navigation-bottom" format="yyyy-MM-dd" /> + <version position="navigation-bottom" /> + <bannerRight> + <name>Openutils</name> + <src>http://openutils.sourceforge.net/images/openutils-logo.png + </src> + <href>http://openutils.sourceforge.net</href> + </bannerRight> + <bannerLeft> + <name>Sourceforge</name> + <src>http://sourceforge.net/sflogo.php?group_id=150467&amp;type=2</src> + <href>http://www.sourceforge.net/projects/openutils</href> + </bannerLeft> + <body> + <head> + <link rel="icon" href="images/favicon.ico" /> + </head> + <breadcrumbs> + <item name="openutils" href="http://openutils.sourceforge.net/" /> + <item name="openutils-mgnlgroovy" href="http://openutils.sourceforge.net/openutils-mgnlgroovy" /> + </breadcrumbs> + <menu name="openutils mgnlgroovy"> + <item name="Intro" href="index.html"></item> + </menu> + <menu ref="modules" inherit="bottom" /> + <menu ref="reports" inherit="bottom" /> + </body> + <skin> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-maven-skin</artifactId> + <version>1.1</version> + </skin> +</project> Property changes on: trunk/openutils-mgnlgroovy/src/site/site.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 22:25:13
|
Revision: 975 http://openutils.svn.sourceforge.net/openutils/?rev=975&view=rev Author: fgiust Date: 2009-01-31 21:49:42 +0000 (Sat, 31 Jan 2009) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlmessages-1.1 Added Paths: ----------- tags/openutils-mgnlmessages-1.1/ tags/openutils-mgnlmessages-1.1/pom.xml Removed Paths: ------------- tags/openutils-mgnlmessages-1.1/pom.xml Deleted: tags/openutils-mgnlmessages-1.1/pom.xml =================================================================== --- trunk/openutils-mgnlmessages/pom.xml 2009-01-31 21:46:57 UTC (rev 973) +++ tags/openutils-mgnlmessages-1.1/pom.xml 2009-01-31 21:49:42 UTC (rev 975) @@ -1,86 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>10</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-mgnlmessages</artifactId> - <name>openutils-mgnlmessages</name> - <version>1.1-SNAPSHOT</version> - <licenses> - <license> - <name>GPLv3</name> - <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> - </license> - </licenses> - <build> - <resources> - <resource> - <filtering>false</filtering> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <filtering>true</filtering> - <directory>src/main/resources</directory> - <includes> - <include>META-INF/magnolia/*</include> - </includes> - </resource> - </resources> - </build> - <dependencies> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-core</artifactId> - <version>3.6.3</version> - </dependency> - <dependency> - <groupId>info.magnolia</groupId> - <artifactId>magnolia-module-admininterface</artifactId> - <version>3.6.3</version> - </dependency> - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnltasks</artifactId> - <version>3.5.5</version> - </dependency> - <dependency> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils-mgnlext</artifactId> - <version>2.1</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <repositories> - <repository> - <id>repository.magnolia.info</id> - <name>magnolia repository</name> - <url>http://repository.magnolia-cms.com/m2</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - </repositories> -</project> \ No newline at end of file Copied: tags/openutils-mgnlmessages-1.1/pom.xml (from rev 974, trunk/openutils-mgnlmessages/pom.xml) =================================================================== --- tags/openutils-mgnlmessages-1.1/pom.xml (rev 0) +++ tags/openutils-mgnlmessages-1.1/pom.xml 2009-01-31 21:49:42 UTC (rev 975) @@ -0,0 +1,91 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>10</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-mgnlmessages</artifactId> + <name>openutils-mgnlmessages</name> + <version>1.1</version> + <licenses> + <license> + <name>GPLv3</name> + <url>http://www.gnu.org/licenses/gpl-3.0.txt</url> + </license> + </licenses> + <build> + <resources> + <resource> + <filtering>false</filtering> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <filtering>true</filtering> + <directory>src/main/resources</directory> + <includes> + <include>META-INF/magnolia/*</include> + </includes> + </resource> + </resources> + </build> + <dependencies> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-core</artifactId> + <version>3.6.3</version> + </dependency> + <dependency> + <groupId>info.magnolia</groupId> + <artifactId>magnolia-module-admininterface</artifactId> + <version>3.6.3</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnltasks</artifactId> + <version>3.5.5</version> + </dependency> + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlext</artifactId> + <version>2.1</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <repositories> + <repository> + <id>repository.magnolia.info</id> + <name>magnolia repository</name> + <url>http://repository.magnolia-cms.com/m2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmessages-1.1</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmessages-1.1</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlmessages-1.1</url> + </scm> +</project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 22:25:08
|
Revision: 973 http://openutils.svn.sourceforge.net/openutils/?rev=973&view=rev Author: fgiust Date: 2009-01-31 21:46:57 +0000 (Sat, 31 Jan 2009) Log Message: ----------- minor cleanups Modified Paths: -------------- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java Added Paths: ----------- trunk/openutils-mgnlmessages/src/site/ trunk/openutils-mgnlmessages/src/site/apt/ trunk/openutils-mgnlmessages/src/site/apt/index.apt trunk/openutils-mgnlmessages/src/site/changes/ trunk/openutils-mgnlmessages/src/site/changes/changes.xml trunk/openutils-mgnlmessages/src/site/resources/ trunk/openutils-mgnlmessages/src/site/resources/images/ trunk/openutils-mgnlmessages/src/site/resources/images/gui.png trunk/openutils-mgnlmessages/src/site/site.xml Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java 2009-01-31 20:56:29 UTC (rev 972) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java 2009-01-31 21:46:57 UTC (rev 973) @@ -23,8 +23,6 @@ import net.sourceforge.openutils.mgnlmessages.lifecycle.MessagesModuleLifecycle; import org.apache.commons.lang.StringUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** @@ -38,8 +36,6 @@ */ public static final ItemType FOLDER = ItemType.CONTENT; - private Logger log = LoggerFactory.getLogger(MessagesConfigurationManager.class); - private List<Locale> locales = new ArrayList<Locale>(); /** @@ -181,7 +177,7 @@ /** * Sets the languages. - * @param languages the languages to set + * @param locales the languages to set */ public void setLocales(List<Locale> locales) { Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java 2009-01-31 20:56:29 UTC (rev 972) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/SimpleMessagesImpl.java 2009-01-31 21:46:57 UTC (rev 973) @@ -13,8 +13,8 @@ import java.util.ResourceBundle; import org.apache.commons.collections.IteratorUtils; +import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; -import org.apache.commons.io.IOUtils; /** @@ -115,6 +115,9 @@ return bundle; } + /** + * {@inheritDoc} + */ public void reload() throws Exception { this.bundle = null; @@ -122,6 +125,7 @@ /** * Iterate over the keys + * @return iterator */ @SuppressWarnings("unchecked") public Iterator keys() Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java 2009-01-31 20:56:29 UTC (rev 972) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/ExtractMessagesFromDialogsPage.java 2009-01-31 21:46:57 UTC (rev 973) @@ -55,6 +55,7 @@ /** * {@inheritDoc} */ + @SuppressWarnings("unchecked") @Override public String show() { @@ -83,12 +84,16 @@ } catch (RepositoryException e) { - + // ignore } return super.show(); } + /** + * Extract messages keys + * @return view + */ public String extract() { HierarchyManager hmConfig = MgnlContext.getHierarchyManager(ContentRepository.CONFIG); @@ -96,7 +101,6 @@ HierarchyManager hm = MgnlContext.getHierarchyManager(MessagesModuleLifecycle.REPO); for (String dialogRoot : this.request.getParameterValues("dialogsRoots")) { - Query q; try { doExtraction(dialogRoot, "label", qm, hm, hmConfig); @@ -128,6 +132,7 @@ return this.show(); } + @SuppressWarnings("unchecked") private void doExtraction(String root, String property, QueryManager qm, HierarchyManager hmMessages, HierarchyManager hmConfig) throws RepositoryException { Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java 2009-01-31 20:56:29 UTC (rev 972) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesEditPage.java 2009-01-31 21:46:57 UTC (rev 973) @@ -4,7 +4,6 @@ import info.magnolia.cms.core.HierarchyManager; import info.magnolia.cms.core.ItemType; import info.magnolia.cms.core.Path; -import info.magnolia.cms.exchange.ExchangeException; import info.magnolia.context.MgnlContext; import info.magnolia.module.admininterface.TemplatedMVCHandler; @@ -71,17 +70,16 @@ /** * {@inheritDoc} */ - @SuppressWarnings("unchecked") @Override public void init() { - super.init(); } /** * {@inheritDoc} */ + @SuppressWarnings("unchecked") @Override public void renderHtml(String view) throws IOException { @@ -210,8 +208,6 @@ * move a node (from AdminTreeMVCHandler copymoveNode) * @param source source node * @param destination destination folder - * @return new content - * @throws ExchangeException publication problem * @throws RepositoryException repository exception */ protected void moveNode(String source, String destination) throws RepositoryException Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2009-01-31 20:56:29 UTC (rev 972) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2009-01-31 21:46:57 UTC (rev 973) @@ -52,7 +52,7 @@ */ private Logger log = LoggerFactory.getLogger(MessagesImpExpPage.class); - Document uploadFile; + private Document uploadFile; /** * @param name @@ -64,6 +64,10 @@ super(name, request, response); } + /** + * Export translations to an excel file + * @return view + */ @SuppressWarnings("unchecked") public String exportExcel() { @@ -90,7 +94,7 @@ Messages mc = new MessagesChain(new RepositoryMessagesImpl(MessagesManager.DEFAULT_BASENAME, locale)) .chain(new ModulePropertyMessagesImpl(locale)); - ; + for (String basename : MessagesConfigurationManager.getBaseNames()) { ((MessagesChain) mc).chain(new DefaultMessagesImpl(basename, locale)); @@ -150,6 +154,10 @@ return null; } + /** + * Import an excel file. + * @return view name + */ public String importExcel() { FileInputStream fis; Added: trunk/openutils-mgnlmessages/src/site/apt/index.apt =================================================================== --- trunk/openutils-mgnlmessages/src/site/apt/index.apt (rev 0) +++ trunk/openutils-mgnlmessages/src/site/apt/index.apt 2009-01-31 21:46:57 UTC (rev 973) @@ -0,0 +1,35 @@ + -------------------------- + openutils-mgnlmessages + -------------------------- + Fabrizio Giustina + -------------------------- + +About openutils-mgnlmessages + + openutils-mgnlmessages is a custom {{{http://www.magnolia.info}magnolia}} module which adds a GUI for translating messages + inside the magnolia admin interface. + + This is how the translation page looks: + +[images/gui.png] + + +Installation + + <<This module currently requires magnolia 3.6.x>> + + The module needs to be installed as usual, by declaring an additional dependency into your pom or by manually dropping the jar + into magnolia. + + Unfortunately, for Magnolia 3.6 this module requires also patching one of the magnolia core classes, info.magnolia.cms.i18n.MessagesManager, + since there was no way to cleanly extend/replace it. + You may do that by copying the patched java source (you can find it in the module sources) to your java source folder for + your webapp (the compiled class file must end up in WEB-INF/classes in order to override the one found in the magnolia jars) + + This limitation will be removed after the module will be updated to magnolia 4.0, which allows the configuration of a + custom message manager. + + +Released versions + + {{{http://www.mvnrepository.com/artifact/net.sourceforge.openutils/openutils-mgnlmessages}http://www.mvnrepository.com/artifact/net.sourceforge.openutils/openutils-mgnlmessages}} Property changes on: trunk/openutils-mgnlmessages/src/site/apt/index.apt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlmessages/src/site/changes/changes.xml =================================================================== --- trunk/openutils-mgnlmessages/src/site/changes/changes.xml (rev 0) +++ trunk/openutils-mgnlmessages/src/site/changes/changes.xml 2009-01-31 21:46:57 UTC (rev 973) @@ -0,0 +1,18 @@ +<?xml version="1.0"?> + <!-- + "type" attribute can be: add, remove, update or fix. +--> +<document> + <properties> + <title>Changes</title> + <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> + </properties> + <body> + <release version="1.1" date="2009-01-31" description=""> + <action type="fix" dev="fgiust">minor bugfixes and basic documentation added</action> + </release> + <release version="1.0" date="2008-12-03" description="first release"> + <action type="new" dev="fgiust">Initial public release.</action> + </release> + </body> +</document> \ No newline at end of file Property changes on: trunk/openutils-mgnlmessages/src/site/changes/changes.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlmessages/src/site/resources/images/gui.png =================================================================== (Binary files differ) Property changes on: trunk/openutils-mgnlmessages/src/site/resources/images/gui.png ___________________________________________________________________ Added: svn:mime-type + image/png Added: trunk/openutils-mgnlmessages/src/site/site.xml =================================================================== --- trunk/openutils-mgnlmessages/src/site/site.xml (rev 0) +++ trunk/openutils-mgnlmessages/src/site/site.xml 2009-01-31 21:46:57 UTC (rev 973) @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="Openutils mgnlmessages"> + <publishDate position="navigation-bottom" format="yyyy-MM-dd" /> + <version position="navigation-bottom" /> + <bannerRight> + <name>Openutils</name> + <src>http://openutils.sourceforge.net/images/openutils-logo.png + </src> + <href>http://openutils.sourceforge.net</href> + </bannerRight> + <bannerLeft> + <name>Sourceforge</name> + <src>http://sourceforge.net/sflogo.php?group_id=150467&amp;type=2</src> + <href>http://www.sourceforge.net/projects/openutils</href> + </bannerLeft> + <body> + <head> + <link rel="icon" href="images/favicon.ico" /> + </head> + <breadcrumbs> + <item name="openutils" href="http://openutils.sourceforge.net/" /> + <item name="openutils-mgnlmessages" href="http://openutils.sourceforge.net/openutils-mgnlmessages" /> + </breadcrumbs> + <menu name="openutils mgnlmessages"> + <item name="Intro" href="index.html"></item> + </menu> + <menu ref="modules" inherit="bottom" /> + <menu ref="reports" inherit="bottom" /> + </body> + <skin> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-maven-skin</artifactId> + <version>1.1</version> + </skin> +</project> Property changes on: trunk/openutils-mgnlmessages/src/site/site.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 22:25:01
|
Revision: 976 http://openutils.svn.sourceforge.net/openutils/?rev=976&view=rev Author: fgiust Date: 2009-01-31 21:49:52 +0000 (Sat, 31 Jan 2009) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/openutils-mgnlmessages/pom.xml Modified: trunk/openutils-mgnlmessages/pom.xml =================================================================== --- trunk/openutils-mgnlmessages/pom.xml 2009-01-31 21:49:42 UTC (rev 975) +++ trunk/openutils-mgnlmessages/pom.xml 2009-01-31 21:49:52 UTC (rev 976) @@ -9,7 +9,7 @@ <packaging>jar</packaging> <artifactId>openutils-mgnlmessages</artifactId> <name>openutils-mgnlmessages</name> - <version>1.1</version> + <version>1.2-SNAPSHOT</version> <licenses> <license> <name>GPLv3</name> @@ -82,10 +82,4 @@ </snapshots> </repository> </repositories> - - <scm> - <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmessages-1.1</connection> - <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmessages-1.1</developerConnection> - <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlmessages-1.1</url> - </scm> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 22:24:49
|
Revision: 974 http://openutils.svn.sourceforge.net/openutils/?rev=974&view=rev Author: fgiust Date: 2009-01-31 21:49:19 +0000 (Sat, 31 Jan 2009) Log Message: ----------- [maven-release-plugin] prepare release openutils-mgnlmessages-1.1 Modified Paths: -------------- trunk/openutils-mgnlmessages/pom.xml Modified: trunk/openutils-mgnlmessages/pom.xml =================================================================== --- trunk/openutils-mgnlmessages/pom.xml 2009-01-31 21:46:57 UTC (rev 973) +++ trunk/openutils-mgnlmessages/pom.xml 2009-01-31 21:49:19 UTC (rev 974) @@ -1,5 +1,4 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils</artifactId> @@ -10,7 +9,7 @@ <packaging>jar</packaging> <artifactId>openutils-mgnlmessages</artifactId> <name>openutils-mgnlmessages</name> - <version>1.1-SNAPSHOT</version> + <version>1.1</version> <licenses> <license> <name>GPLv3</name> @@ -83,4 +82,10 @@ </snapshots> </repository> </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmessages-1.1</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlmessages-1.1</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlmessages-1.1</url> + </scm> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 20:56:32
|
Revision: 972 http://openutils.svn.sourceforge.net/openutils/?rev=972&view=rev Author: fgiust Date: 2009-01-31 20:56:29 +0000 (Sat, 31 Jan 2009) Log Message: ----------- updated with latest patches Modified Paths: -------------- trunk/openutils-mgnlmessages/pom.xml trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties Modified: trunk/openutils-mgnlmessages/pom.xml =================================================================== --- trunk/openutils-mgnlmessages/pom.xml 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/pom.xml 2009-01-31 20:56:29 UTC (rev 972) @@ -1,5 +1,6 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <parent> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> + <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils</artifactId> <version>10</version> @@ -73,7 +74,7 @@ <repository> <id>repository.magnolia.info</id> <name>magnolia repository</name> - <url>http://svn.magnolia.info/maven/m2</url> + <url>http://repository.magnolia-cms.com/m2</url> <releases> <enabled>true</enabled> </releases> @@ -82,4 +83,4 @@ </snapshots> </repository> </repositories> -</project> +</project> \ No newline at end of file Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/configuration/MessagesConfigurationManager.java 2009-01-31 20:56:29 UTC (rev 972) @@ -1,6 +1,5 @@ package net.sourceforge.openutils.mgnlmessages.configuration; -import info.magnolia.api.MgnlException; import info.magnolia.cms.beans.config.ContentRepository; import info.magnolia.cms.beans.config.ObservedManager; import info.magnolia.cms.core.Content; @@ -77,7 +76,6 @@ /** * {@inheritDoc} */ - @Override public int compare(Locale o1, Locale o2) { if (o1.getLanguage().equals(o2.getLanguage())) Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/EmptyResourceBundle.java 2009-01-31 20:56:29 UTC (rev 972) @@ -1,7 +1,6 @@ package net.sourceforge.openutils.mgnlmessages.i18n; import java.util.Enumeration; -import java.util.Hashtable; import java.util.ResourceBundle; @@ -13,7 +12,7 @@ { /** - * + * */ public EmptyResourceBundle() { @@ -33,7 +32,6 @@ /** * {@inheritDoc} */ - @Override public boolean hasMoreElements() { return false; @@ -42,7 +40,6 @@ /** * {@inheritDoc} */ - @Override public String nextElement() { return null; Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/ModulePropertyMessagesImpl.java 2009-01-31 20:56:29 UTC (rev 972) @@ -38,7 +38,6 @@ /** * {@inheritDoc} */ - @Override public String get(String key) { String value; @@ -61,7 +60,6 @@ * {@inheritDoc} */ @SuppressWarnings("unchecked") - @Override public Iterator keys() { List<String> keys = new ArrayList<String>(); @@ -79,7 +77,6 @@ /** * {@inheritDoc} */ - @Override public void reload() throws Exception { for (Messages m : messages) Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/i18n/RepositoryMessagesImpl.java 2009-01-31 20:56:29 UTC (rev 972) @@ -86,7 +86,6 @@ /** * {@inheritDoc} */ - @Override public void reload() throws Exception { keys = null; @@ -96,7 +95,6 @@ * {@inheritDoc} */ @SuppressWarnings("unchecked") - @Override public Iterator keys() { Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/lifecycle/MessagesModuleLifecycle.java 2009-01-31 20:56:29 UTC (rev 972) @@ -15,7 +15,7 @@ { /** - * + * */ public static final String REPO = "messages"; @@ -24,7 +24,6 @@ /** * {@inheritDoc} */ - @Override public void start(ModuleLifecycleContext ctx) { log.info("Starting module messages"); @@ -34,7 +33,6 @@ /** * {@inheritDoc} */ - @Override public void stop(ModuleLifecycleContext ctx) { log.info("Stopping module messages"); Modified: trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java =================================================================== --- trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/java/net/sourceforge/openutils/mgnlmessages/pages/MessagesImpExpPage.java 2009-01-31 20:56:29 UTC (rev 972) @@ -42,7 +42,7 @@ /** * @author molaschi - * @version $Id: MessagesImpExpPage.java 5412 2008-11-10 17:02:20Z manuel $ + * @version $Id: MessagesImpExpPage.java 5694 2008-12-18 13:49:18Z manuel $ */ public class MessagesImpExpPage extends TemplatedMVCHandler { @@ -147,7 +147,7 @@ throw new RuntimeException(e); } - return VIEW_NOTHING; + return null; } public String importExcel() Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_en.properties 2009-01-31 20:56:29 UTC (rev 972) @@ -1 +0,0 @@ -messages.prova.chiave=Key \ No newline at end of file Modified: trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties =================================================================== --- trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties 2009-01-31 17:26:20 UTC (rev 971) +++ trunk/openutils-mgnlmessages/src/main/resources/mgnl-messages/messages/messages_it.properties 2009-01-31 20:56:29 UTC (rev 972) @@ -1 +0,0 @@ -messages.prova.chiave=Chiave \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 17:26:23
|
Revision: 971 http://openutils.svn.sourceforge.net/openutils/?rev=971&view=rev Author: fgiust Date: 2009-01-31 17:26:20 +0000 (Sat, 31 Jan 2009) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/openutils-log4j/pom.xml Modified: trunk/openutils-log4j/pom.xml =================================================================== --- trunk/openutils-log4j/pom.xml 2009-01-31 17:26:00 UTC (rev 970) +++ trunk/openutils-log4j/pom.xml 2009-01-31 17:26:20 UTC (rev 971) @@ -9,7 +9,7 @@ </parent> <artifactId>openutils-log4j</artifactId> <packaging>jar</packaging> - <version>2.0.3</version> + <version>2.0.4-SNAPSHOT</version> <name>openutils for Log4j</name> <description>openutils log4j extensions</description> <build> @@ -72,10 +72,4 @@ <scope>test</scope> </dependency> </dependencies> - - <scm> - <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-log4j-2.0.3</connection> - <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-log4j-2.0.3</developerConnection> - <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-log4j-2.0.3</url> - </scm> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 17:26:04
|
Revision: 970 http://openutils.svn.sourceforge.net/openutils/?rev=970&view=rev Author: fgiust Date: 2009-01-31 17:26:00 +0000 (Sat, 31 Jan 2009) Log Message: ----------- [maven-release-plugin] copy for tag openutils-log4j-2.0.3 Added Paths: ----------- tags/openutils-log4j-2.0.3/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 17:24:44
|
Revision: 969 http://openutils.svn.sourceforge.net/openutils/?rev=969&view=rev Author: fgiust Date: 2009-01-31 17:24:40 +0000 (Sat, 31 Jan 2009) Log Message: ----------- [maven-release-plugin] prepare release openutils-log4j-2.0.3 Modified Paths: -------------- trunk/openutils-log4j/pom.xml Modified: trunk/openutils-log4j/pom.xml =================================================================== --- trunk/openutils-log4j/pom.xml 2009-01-31 17:21:34 UTC (rev 968) +++ trunk/openutils-log4j/pom.xml 2009-01-31 17:24:40 UTC (rev 969) @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sourceforge.openutils</groupId> @@ -10,7 +9,7 @@ </parent> <artifactId>openutils-log4j</artifactId> <packaging>jar</packaging> - <version>2.0.3-SNAPSHOT</version> + <version>2.0.3</version> <name>openutils for Log4j</name> <description>openutils log4j extensions</description> <build> @@ -73,4 +72,10 @@ <scope>test</scope> </dependency> </dependencies> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-log4j-2.0.3</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-log4j-2.0.3</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-log4j-2.0.3</url> + </scm> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-31 17:21:36
|
Revision: 968 http://openutils.svn.sourceforge.net/openutils/?rev=968&view=rev Author: fgiust Date: 2009-01-31 17:21:34 +0000 (Sat, 31 Jan 2009) Log Message: ----------- update log4j to 1.2.15 Modified Paths: -------------- trunk/openutils-log4j/pom.xml trunk/openutils-log4j/src/site/changes/changes.xml Modified: trunk/openutils-log4j/pom.xml =================================================================== --- trunk/openutils-log4j/pom.xml 2009-01-30 16:43:39 UTC (rev 967) +++ trunk/openutils-log4j/pom.xml 2009-01-31 17:21:34 UTC (rev 968) @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sourceforge.openutils</groupId> @@ -28,12 +29,30 @@ <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> - <version>1.2.14</version> + <version>1.2.15</version> + <exclusions> + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + <exclusion> + <groupId>javax.jms</groupId> + <artifactId>jms</artifactId> + </exclusion> + <exclusion> + <groupId>com.sun.jdmk</groupId> + <artifactId>jmxtools</artifactId> + </exclusion> + <exclusion> + <groupId>com.sun.jmx</groupId> + <artifactId>jmxri</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> - <version>2.3</version> + <version>2.4</version> </dependency> <dependency> <groupId>javax.mail</groupId> @@ -54,4 +73,4 @@ <scope>test</scope> </dependency> </dependencies> -</project> +</project> \ No newline at end of file Modified: trunk/openutils-log4j/src/site/changes/changes.xml =================================================================== --- trunk/openutils-log4j/src/site/changes/changes.xml 2009-01-30 16:43:39 UTC (rev 967) +++ trunk/openutils-log4j/src/site/changes/changes.xml 2009-01-31 17:21:34 UTC (rev 968) @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<!-- + <!-- "type" attribute can be: add, remove, update or fix. --> <document> @@ -8,6 +8,10 @@ <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> </properties> <body> + <release version="2.0.3" date="2009-01-31" description="2.0.3"> + <action type="update" dev="fgiust"> Updated log4j dependency to 1.2.15 with the necessary exclusion (1.2.15 brings + in several optional/unwanted dependencies with maven)</action> + </release> <release version="2.0.2" date="2008-03-19" description="2.0.2"> <action type="fix" dev="fgiust"> Fixed a NPE in AlternateSMTPAppender (for exceptions with a null stacktrace) </action> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2009-01-30 16:43:41
|
Revision: 967 http://openutils.svn.sourceforge.net/openutils/?rev=967&view=rev Author: molaschi Date: 2009-01-30 16:43:39 +0000 (Fri, 30 Jan 2009) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/openutils-mgnlstripes/pom.xml Modified: trunk/openutils-mgnlstripes/pom.xml =================================================================== --- trunk/openutils-mgnlstripes/pom.xml 2009-01-30 16:43:29 UTC (rev 966) +++ trunk/openutils-mgnlstripes/pom.xml 2009-01-30 16:43:39 UTC (rev 967) @@ -10,7 +10,7 @@ <packaging>jar</packaging> <artifactId>openutils-mgnlstripes</artifactId> <name>openutils-mgnlstripes</name> - <version>4.0</version> + <version>4.1-SNAPSHOT</version> <licenses> <license> <name>GPLv3</name> @@ -96,10 +96,4 @@ </snapshots> </repository> </repositories> - - <scm> - <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlstripes-4.0</connection> - <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlstripes-4.0</developerConnection> - <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlstripes-4.0</url> - </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2009-01-30 16:43:33
|
Revision: 966 http://openutils.svn.sourceforge.net/openutils/?rev=966&view=rev Author: molaschi Date: 2009-01-30 16:43:29 +0000 (Fri, 30 Jan 2009) Log Message: ----------- [maven-release-plugin] copy for tag openutils-mgnlstripes-4.0 Added Paths: ----------- tags/openutils-mgnlstripes-4.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2009-01-30 16:36:33
|
Revision: 965 http://openutils.svn.sourceforge.net/openutils/?rev=965&view=rev Author: molaschi Date: 2009-01-30 16:36:30 +0000 (Fri, 30 Jan 2009) Log Message: ----------- [maven-release-plugin] prepare release openutils-mgnlstripes-4.0 Modified Paths: -------------- trunk/openutils-mgnlstripes/pom.xml Modified: trunk/openutils-mgnlstripes/pom.xml =================================================================== --- trunk/openutils-mgnlstripes/pom.xml 2009-01-30 16:35:17 UTC (rev 964) +++ trunk/openutils-mgnlstripes/pom.xml 2009-01-30 16:36:30 UTC (rev 965) @@ -10,7 +10,7 @@ <packaging>jar</packaging> <artifactId>openutils-mgnlstripes</artifactId> <name>openutils-mgnlstripes</name> - <version>4.0-SNAPSHOT</version> + <version>4.0</version> <licenses> <license> <name>GPLv3</name> @@ -96,4 +96,10 @@ </snapshots> </repository> </repositories> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlstripes-4.0</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-mgnlstripes-4.0</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-mgnlstripes-4.0</url> + </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2009-01-30 16:35:22
|
Revision: 964 http://openutils.svn.sourceforge.net/openutils/?rev=964&view=rev Author: molaschi Date: 2009-01-30 16:35:17 +0000 (Fri, 30 Jan 2009) Log Message: ----------- update site Modified Paths: -------------- trunk/openutils-mgnlstripes/src/site/apt/index.apt trunk/openutils-mgnlstripes/src/site/changes/changes.xml Modified: trunk/openutils-mgnlstripes/src/site/apt/index.apt =================================================================== --- trunk/openutils-mgnlstripes/src/site/apt/index.apt 2009-01-30 16:16:01 UTC (rev 963) +++ trunk/openutils-mgnlstripes/src/site/apt/index.apt 2009-01-30 16:35:17 UTC (rev 964) @@ -13,17 +13,19 @@ Any magically-converted Stripes action will still be able to use any standard Stripes feature, plus it will enjoy the automatic injection of any paragraph property. - <<This module requires magnolia 3.5.x or 3.6.x, and will not work on any earlier version!>> + <<This module requires magnolia 4.0.x, and will not work on any earlier version!>> Supported versions: -*-----------------------------*--------------------------------*------------------------------- +*-----------------------------*--------------------------------*-------------------------------------------- | mgnlstripes | stripes | magnolia -*-----------------------------*--------------------------------*------------------------------- +*-----------------------------*--------------------------------*-------------------------------------------- | 3.5.x | 1.4.x (doesn't work with 1.5) | 3.5 (also works on 3.6) -*-----------------------------*--------------------------------*------------------------------- +*-----------------------------*--------------------------------*-------------------------------------------- | 3.6.x (currently beta) | 1.5 (doesn't work with 1.4.x) | 3.6 (also works on 3.5) -*-----------------------------*--------------------------------*------------------------------- +*-----------------------------*--------------------------------*-------------------------------------------- +| 4.0.x (currently beta) | 1.5 (doesn't work with 1.4.x) | 4.0 (doesn't work with previous versions) +*-----------------------------*--------------------------------*-------------------------------------------- @@ -36,7 +38,7 @@ <dependency> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils-mgnlstripes</artifactId> - <version>3.5</version> + <version>4.0</version> </dependency> +----------------------------------------------+ Modified: trunk/openutils-mgnlstripes/src/site/changes/changes.xml =================================================================== --- trunk/openutils-mgnlstripes/src/site/changes/changes.xml 2009-01-30 16:16:01 UTC (rev 963) +++ trunk/openutils-mgnlstripes/src/site/changes/changes.xml 2009-01-30 16:35:17 UTC (rev 964) @@ -8,6 +8,9 @@ <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> </properties> <body> + <release version="4.0" date="2009-01-30" description=""> + <action type="update" dev="molaschi">port to magnolia 4.0 (created the branch "openutils-mgnlstripes-3.6.x" to continue supporting magnolia 3.6.x integration)</action> + </release> <release version="3.6-b2" date="2008-09-17" description=""> <action type="fix" dev="fgiust">fix handling of stripes locale</action> </release> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2009-01-30 16:16:06
|
Revision: 963 http://openutils.svn.sourceforge.net/openutils/?rev=963&view=rev Author: fgiust Date: 2009-01-30 16:16:01 +0000 (Fri, 30 Jan 2009) Log Message: ----------- ignores Modified Paths: -------------- trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/render/StrutsRenderer.java trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java trunk/pom.xml Added Paths: ----------- trunk/openutils-mgnlstruts11/src/site/ trunk/openutils-mgnlstruts11/src/site/apt/ trunk/openutils-mgnlstruts11/src/site/apt/index.apt trunk/openutils-mgnlstruts11/src/site/changes/ trunk/openutils-mgnlstruts11/src/site/changes/changes.xml trunk/openutils-mgnlstruts11/src/site/site.xml Property Changed: ---------------- trunk/openutils-deployment/ trunk/openutils-mgnlcas/ trunk/openutils-mgnlcontrols/ trunk/openutils-mgnlgroovy/ trunk/openutils-mgnlmessages/ Property changes on: trunk/openutils-deployment ___________________________________________________________________ Modified: svn:ignore - .wtpmodules target .classpath .project .settings .checkstyle + .wtpmodules target .classpath .project .settings .checkstyle pom.xml.releaseBackup release.properties Property changes on: trunk/openutils-mgnlcas ___________________________________________________________________ Added: svn:ignore + .settings .checkstyle .classpath .project target Property changes on: trunk/openutils-mgnlcontrols ___________________________________________________________________ Modified: svn:ignore - target .settings .checkstyle .classpath .project + target .settings .checkstyle .classpath .project pom.xml.releaseBackup release.properties Property changes on: trunk/openutils-mgnlgroovy ___________________________________________________________________ Added: svn:ignore + target .settings .checkstyle .classpath .project Property changes on: trunk/openutils-mgnlmessages ___________________________________________________________________ Added: svn:ignore + target .settings .checkstyle .classpath .project Modified: trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/render/StrutsRenderer.java =================================================================== --- trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/render/StrutsRenderer.java 2009-01-30 15:41:52 UTC (rev 962) +++ trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/render/StrutsRenderer.java 2009-01-30 16:16:01 UTC (rev 963) @@ -144,7 +144,7 @@ } } } - MgnlRequestProcessor rp = (MgnlRequestProcessor) getRequestProcessor(mc, servletContext, dispatcher); + RequestProcessor rp = getRequestProcessor(mc, servletContext, dispatcher); rp.process(request, response); } catch (ServletException e) @@ -180,7 +180,6 @@ protected synchronized RequestProcessor getRequestProcessor(ModuleConfig config, ServletContext servletContext, ActionServlet dispatcher) throws ServletException { - String key = Globals.REQUEST_PROCESSOR_KEY + config.getPrefix(); - return (RequestProcessor) servletContext.getAttribute(key); + return ((MgnlStrutsServlet) dispatcher).getRequestProcessor(config); } } Modified: trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java =================================================================== --- trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java 2009-01-30 15:41:52 UTC (rev 962) +++ trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java 2009-01-30 16:16:01 UTC (rev 963) @@ -83,6 +83,13 @@ if (pageUri != null) { results.append(pageUri); + + String anchor = actionUrl; + if (StringUtils.contains(anchor, "/")) + { + anchor = StringUtils.substringAfterLast(anchor, "/"); + } + results.append("#" + anchor); } results.append("\""); Added: trunk/openutils-mgnlstruts11/src/site/apt/index.apt =================================================================== --- trunk/openutils-mgnlstruts11/src/site/apt/index.apt (rev 0) +++ trunk/openutils-mgnlstruts11/src/site/apt/index.apt 2009-01-30 16:16:01 UTC (rev 963) @@ -0,0 +1,28 @@ + -------------------------- + openutils-mgnlmedia + -------------------------- + Fabrizio Giustina + -------------------------- + +About openutils-mgnlmedia + + openutils-mgnlmedia is a custom {{{http://www.magnolia.info}magnolia}} module for the management of multimedia assets + like images and videos. + + <<This module requires magnolia 3.6.x, and will not work on any earlier version!>> + + + +Configuration + + First of all drop the openutils-mgnlstripes jar and the stripes jar into WEB-INF/lib, or (better) if you are using maven + just declare the following dependency: + ++----------------------------------------------+ + <dependency> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-mgnlmedia</artifactId> + <version>0.1</version> + </dependency> ++----------------------------------------------+ + Property changes on: trunk/openutils-mgnlstruts11/src/site/apt/index.apt ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlstruts11/src/site/changes/changes.xml =================================================================== --- trunk/openutils-mgnlstruts11/src/site/changes/changes.xml (rev 0) +++ trunk/openutils-mgnlstruts11/src/site/changes/changes.xml 2009-01-30 16:16:01 UTC (rev 963) @@ -0,0 +1,15 @@ +<?xml version="1.0"?> + <!-- + "type" attribute can be: add, remove, update or fix. +--> +<document> + <properties> + <title>Changes</title> + <author email="fgiust(at)users.sourceforge.net">Fabrizio Giustina</author> + </properties> + <body> + <release version="0.1" date="2008-12-04" description=""> + <action type="add" dev="fgiust">first alpha release</action> + </release> + </body> +</document> \ No newline at end of file Property changes on: trunk/openutils-mgnlstruts11/src/site/changes/changes.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Added: trunk/openutils-mgnlstruts11/src/site/site.xml =================================================================== --- trunk/openutils-mgnlstruts11/src/site/site.xml (rev 0) +++ trunk/openutils-mgnlstruts11/src/site/site.xml 2009-01-30 16:16:01 UTC (rev 963) @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="Openutils mgnlmedia"> + <publishDate position="navigation-bottom" format="yyyy-MM-dd" /> + <version position="navigation-bottom" /> + <bannerRight> + <name>Openutils</name> + <src>http://openutils.sourceforge.net/images/openutils-logo.png + </src> + <href>http://openutils.sourceforge.net</href> + </bannerRight> + <bannerLeft> + <name>Sourceforge</name> + <src>http://sourceforge.net/sflogo.php?group_id=150467&amp;type=2</src> + <href>http://www.sourceforge.net/projects/openutils</href> + </bannerLeft> + <body> + <head> + <link rel="icon" href="images/favicon.ico" /> + </head> + <breadcrumbs> + <item name="openutils" href="http://openutils.sourceforge.net/" /> + <item name="openutils-mgnlstruts11" href="http://openutils.sourceforge.net/openutils-mgnlstruts11" /> + </breadcrumbs> + <menu name="openutils mgnlmedia"> + <item name="About" href="index.html"></item> + </menu> + <menu ref="modules" inherit="bottom" /> + <menu ref="reports" inherit="bottom" /> + </body> + <skin> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils-maven-skin</artifactId> + <version>1.1</version> + </skin> +</project> Property changes on: trunk/openutils-mgnlstruts11/src/site/site.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-01-30 15:41:52 UTC (rev 962) +++ trunk/pom.xml 2009-01-30 16:16:01 UTC (rev 963) @@ -244,13 +244,11 @@ <module>openutils-mgnlmessages</module> <module>openutils-mgnlcas</module> <module>openutils-mgnlgroovy</module> - <!-- + <module>openutils-mgnlstruts11</module> + <module>openutils-mgnlmedia</module> <module>openutils-elfunctions</module> - <module>openutils-mgnlmessages</module> + <!-- <module>openutils-mgnlrating</module> - <module>openutils-mgnlcas</module> - <module>openutils-mgnlgroovy</module> - <module>openutils-mgnlmedia</module> --> <!-- <module>openutils-spring-remote-callback</module>--> </modules> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2009-01-30 15:41:56
|
Revision: 962 http://openutils.svn.sourceforge.net/openutils/?rev=962&view=rev Author: molaschi Date: 2009-01-30 15:41:52 +0000 (Fri, 30 Jan 2009) Log Message: ----------- port to magnolia 4.0 api Modified Paths: -------------- trunk/openutils-mgnlstripes/pom.xml trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/MgnlActionResolver.java trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/StripesRenderer.java Modified: trunk/openutils-mgnlstripes/pom.xml =================================================================== --- trunk/openutils-mgnlstripes/pom.xml 2009-01-30 15:12:56 UTC (rev 961) +++ trunk/openutils-mgnlstripes/pom.xml 2009-01-30 15:41:52 UTC (rev 962) @@ -10,7 +10,7 @@ <packaging>jar</packaging> <artifactId>openutils-mgnlstripes</artifactId> <name>openutils-mgnlstripes</name> - <version>3.6-SNAPSHOT</version> + <version>4.0-SNAPSHOT</version> <licenses> <license> <name>GPLv3</name> @@ -50,17 +50,17 @@ <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-core</artifactId> - <version>3.6.1</version> + <version>4.0-rc1</version> </dependency> <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-module-admininterface</artifactId> - <version>3.6.1</version> + <version>4.0-rc1</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> - <version>2.4</version> + <version>2.5</version> <scope>provided</scope> </dependency> <dependency> Modified: trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/MgnlActionResolver.java =================================================================== --- trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/MgnlActionResolver.java 2009-01-30 15:12:56 UTC (rev 961) +++ trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/MgnlActionResolver.java 2009-01-30 15:41:52 UTC (rev 962) @@ -17,8 +17,8 @@ */ package it.openutils.magnoliastripes; -import info.magnolia.cms.beans.config.Paragraph; -import info.magnolia.cms.beans.config.ParagraphManager; +import info.magnolia.module.templating.Paragraph; +import info.magnolia.module.templating.ParagraphManager; import java.util.HashSet; import java.util.Set; @@ -32,8 +32,8 @@ /** - * ActionResolver that extends <code>NameBasedActionResolver</code>, registering any found Stripe action as a - * Magnolia paragraph. + * ActionResolver that extends <code>NameBasedActionResolver</code>, registering any found Stripe action as a Magnolia + * paragraph. * @author fgiust * @version $Id: $ */ Modified: trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/StripesRenderer.java =================================================================== --- trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/StripesRenderer.java 2009-01-30 15:12:56 UTC (rev 961) +++ trunk/openutils-mgnlstripes/src/main/java/it/openutils/magnoliastripes/StripesRenderer.java 2009-01-30 15:41:52 UTC (rev 962) @@ -17,14 +17,15 @@ */ package it.openutils.magnoliastripes; -import info.magnolia.cms.beans.config.Paragraph; -import info.magnolia.cms.beans.config.Template; -import info.magnolia.cms.beans.runtime.ParagraphRenderer; -import info.magnolia.cms.beans.runtime.TemplateRenderer; import info.magnolia.cms.core.Content; import info.magnolia.cms.core.NodeData; import info.magnolia.context.MgnlContext; import info.magnolia.context.WebContext; +import info.magnolia.module.templating.Paragraph; +import info.magnolia.module.templating.ParagraphRenderer; +import info.magnolia.module.templating.RenderException; +import info.magnolia.module.templating.Template; +import info.magnolia.module.templating.TemplateRenderer; import java.io.IOException; import java.io.Writer; @@ -90,10 +91,23 @@ public void renderTemplate(Template template, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { - final String templatePath = template.getPath(); + try + { + renderTemplate(MgnlContext.getAggregationState().getCurrentContent(), template, response.getWriter()); + } + catch (RenderException e) + { + throw new ServletException(e); + } + } + + /** + * {@inheritDoc} + */ + public void renderTemplate(Content content, Template template, Writer out) throws RenderException, IOException + { Map<String, String[]> nodeDataMap = contentToMap(MgnlContext.getAggregationState().getCurrentContent()); - - renderCommon(templatePath, nodeDataMap, response.getWriter()); + renderCommon(template.getTemplatePath(), nodeDataMap, out); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2009-01-30 15:13:06
|
Revision: 961 http://openutils.svn.sourceforge.net/openutils/?rev=961&view=rev Author: molaschi Date: 2009-01-30 15:12:56 +0000 (Fri, 30 Jan 2009) Log Message: ----------- branch for 3.6.x magnolia versions Added Paths: ----------- branches/openutils-mgnlstripes-3.6.x/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2008-12-16 14:24:53
|
Revision: 960 http://openutils.svn.sourceforge.net/openutils/?rev=960&view=rev Author: molaschi Date: 2008-12-16 14:24:49 +0000 (Tue, 16 Dec 2008) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/openutils-notifications/pom.xml Modified: trunk/openutils-notifications/pom.xml =================================================================== --- trunk/openutils-notifications/pom.xml 2008-12-16 14:24:41 UTC (rev 959) +++ trunk/openutils-notifications/pom.xml 2008-12-16 14:24:49 UTC (rev 960) @@ -8,7 +8,7 @@ </parent> <artifactId>openutils-notifications</artifactId> <name>Openutils Notifications</name> - <version>1.0.0</version> + <version>1.0.1-SNAPSHOT</version> <description>openutils spring notification manager (plain text mails, freemarker mails, ...)</description> <dependencies> <dependency> @@ -43,10 +43,4 @@ <version>1.5.0</version> </dependency> </dependencies> - - <scm> - <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-notifications-1.0.0</connection> - <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-notifications-1.0.0</developerConnection> - <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-notifications-1.0.0</url> - </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2008-12-16 14:24:46
|
Revision: 959 http://openutils.svn.sourceforge.net/openutils/?rev=959&view=rev Author: molaschi Date: 2008-12-16 14:24:41 +0000 (Tue, 16 Dec 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-notifications-1.0.0 Added Paths: ----------- tags/openutils-notifications-1.0.0/ tags/openutils-notifications-1.0.0/pom.xml Removed Paths: ------------- tags/openutils-notifications-1.0.0/pom.xml Deleted: tags/openutils-notifications-1.0.0/pom.xml =================================================================== --- trunk/openutils-notifications/pom.xml 2008-12-16 14:16:26 UTC (rev 957) +++ tags/openutils-notifications-1.0.0/pom.xml 2008-12-16 14:24:41 UTC (rev 959) @@ -1,47 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>10</version> - <relativePath>..</relativePath> - </parent> - <artifactId>openutils-notifications</artifactId> - <name>Openutils Notifications</name> - <version>1.0.0-SNAPSHOT</version> - <description>openutils spring notification manager (plain text mails, freemarker mails, ...)</description> - <dependencies> - <dependency> - <groupId>org.freemarker</groupId> - <artifactId>freemarker</artifactId> - <version>2.3.13</version> - </dependency> - <dependency> - <groupId>javax.mail</groupId> - <artifactId>mail</artifactId> - <version>1.4</version> - </dependency> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.4</version> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-context</artifactId> - <version>2.5.3</version> - <exclusions> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-api</artifactId> - <version>1.5.0</version> - </dependency> - </dependencies> -</project> Copied: tags/openutils-notifications-1.0.0/pom.xml (from rev 958, trunk/openutils-notifications/pom.xml) =================================================================== --- tags/openutils-notifications-1.0.0/pom.xml (rev 0) +++ tags/openutils-notifications-1.0.0/pom.xml 2008-12-16 14:24:41 UTC (rev 959) @@ -0,0 +1,52 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>10</version> + <relativePath>..</relativePath> + </parent> + <artifactId>openutils-notifications</artifactId> + <name>Openutils Notifications</name> + <version>1.0.0</version> + <description>openutils spring notification manager (plain text mails, freemarker mails, ...)</description> + <dependencies> + <dependency> + <groupId>org.freemarker</groupId> + <artifactId>freemarker</artifactId> + <version>2.3.13</version> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4</version> + </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.4</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-context</artifactId> + <version>2.5.3</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.5.0</version> + </dependency> + </dependencies> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-notifications-1.0.0</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-notifications-1.0.0</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-notifications-1.0.0</url> + </scm> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2008-12-16 14:24:30
|
Revision: 958 http://openutils.svn.sourceforge.net/openutils/?rev=958&view=rev Author: molaschi Date: 2008-12-16 14:24:25 +0000 (Tue, 16 Dec 2008) Log Message: ----------- [maven-release-plugin] prepare release openutils-notifications-1.0.0 Modified Paths: -------------- trunk/openutils-notifications/pom.xml Modified: trunk/openutils-notifications/pom.xml =================================================================== --- trunk/openutils-notifications/pom.xml 2008-12-16 14:16:26 UTC (rev 957) +++ trunk/openutils-notifications/pom.xml 2008-12-16 14:24:25 UTC (rev 958) @@ -1,5 +1,4 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sourceforge.openutils</groupId> @@ -9,7 +8,7 @@ </parent> <artifactId>openutils-notifications</artifactId> <name>Openutils Notifications</name> - <version>1.0.0-SNAPSHOT</version> + <version>1.0.0</version> <description>openutils spring notification manager (plain text mails, freemarker mails, ...)</description> <dependencies> <dependency> @@ -44,4 +43,10 @@ <version>1.5.0</version> </dependency> </dependencies> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-notifications-1.0.0</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-notifications-1.0.0</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-notifications-1.0.0</url> + </scm> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mol...@us...> - 2008-12-16 14:16:30
|
Revision: 957 http://openutils.svn.sourceforge.net/openutils/?rev=957&view=rev Author: molaschi Date: 2008-12-16 14:16:26 +0000 (Tue, 16 Dec 2008) Log Message: ----------- add openutils small notification manager lib Added Paths: ----------- trunk/openutils-notifications/ trunk/openutils-notifications/pom.xml trunk/openutils-notifications/src/ trunk/openutils-notifications/src/main/ trunk/openutils-notifications/src/main/java/ trunk/openutils-notifications/src/main/java/net/ trunk/openutils-notifications/src/main/java/net/sourceforge/ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/Notification.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/NotificationException.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/EmailNotification.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/FreemarkerEmailNotification.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/SmsNotification.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/EmailNotifier.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/FreemarkerEmailNotifier.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/Notifier.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/SMSNotifier.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/DefaultNotificationManagerImpl.java trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/NotificationManager.java trunk/openutils-notifications/src/main/resources/ trunk/openutils-notifications/src/test/ trunk/openutils-notifications/src/test/java/ trunk/openutils-notifications/src/test/resources/ Added: trunk/openutils-notifications/pom.xml =================================================================== --- trunk/openutils-notifications/pom.xml (rev 0) +++ trunk/openutils-notifications/pom.xml 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,47 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>10</version> + <relativePath>..</relativePath> + </parent> + <artifactId>openutils-notifications</artifactId> + <name>Openutils Notifications</name> + <version>1.0.0-SNAPSHOT</version> + <description>openutils spring notification manager (plain text mails, freemarker mails, ...)</description> + <dependencies> + <dependency> + <groupId>org.freemarker</groupId> + <artifactId>freemarker</artifactId> + <version>2.3.13</version> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4</version> + </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.4</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-context</artifactId> + <version>2.5.3</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.5.0</version> + </dependency> + </dependencies> +</project> Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/Notification.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/Notification.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/Notification.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,30 @@ +package net.sourceforge.openutils.notifications; + +/** + * @author molaschi + * @version $Id: $ + */ +public interface Notification +{ + + /** + * Get the notifier bean + * + * @return notifier + */ + String getNotifierBeanName(); + + /** + * Get message body + * + * @return message body + */ + String getMessageBody() throws NotificationException; + + /** + * Get message subject + * + * @return message subject + */ + String getMessageSubject(); +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/NotificationException.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/NotificationException.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/NotificationException.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,32 @@ +package net.sourceforge.openutils.notifications; + +/** + * @author molaschi + * @version $Id: $ + */ +public class NotificationException extends Exception +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** + * @param arg0 + * @param arg1 + */ + public NotificationException(String arg0, Throwable arg1) + { + super(arg0, arg1); + } + + /** + * @param arg0 + */ + public NotificationException(Throwable arg0) + { + super(arg0); + } + +} Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/EmailNotification.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/EmailNotification.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/EmailNotification.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,35 @@ +package net.sourceforge.openutils.notifications.messages; + +import java.util.List; + +import javax.mail.internet.MimeBodyPart; + +import net.sourceforge.openutils.notifications.Notification; + + +/** + * @author molaschi + * @version $Id: $ + */ +public abstract class EmailNotification implements Notification +{ + + /** + * Default property name for email sender + */ + public static String DEFAULT_SENDER = "mail.defaultSender"; + + public static String BEAN_NAME = "emailNotifier"; + + /** + * {@inheritDoc} + */ + @Override + public final String getNotifierBeanName() + { + return BEAN_NAME; + } + + public abstract List<MimeBodyPart> getAttachments(); + +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/FreemarkerEmailNotification.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/FreemarkerEmailNotification.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/FreemarkerEmailNotification.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,182 @@ +package net.sourceforge.openutils.notifications.messages; + +import java.io.IOException; +import java.io.StringWriter; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +import javax.mail.internet.MimeBodyPart; + +import net.sourceforge.openutils.notifications.NotificationException; + +import org.apache.commons.lang.StringUtils; + +import freemarker.cache.ClassTemplateLoader; +import freemarker.ext.beans.BeanModel; +import freemarker.template.Configuration; +import freemarker.template.Template; +import freemarker.template.TemplateException; +import freemarker.template.TemplateMethodModelEx; +import freemarker.template.TemplateModelException; + + +/** + * @author molaschi + * @version $Id: $ + */ +public abstract class FreemarkerEmailNotification extends EmailNotification +{ + + private Configuration configuration; + + private Map<String, Object> data; + + protected String body; + + public Locale getLocale() + { + return Locale.ENGLISH; + } + + /** + * Sets the configuration. + * @param configuration the configuration to set + */ + public void setConfiguration(Configuration configuration) + { + this.configuration = configuration; + } + + /** + * {@inheritDoc} + */ + @Override + public String getMessageBody() throws NotificationException + { + if (body == null) + { + if (data == null) + { + data = new HashMap<String, Object>(); + } + for (Method m : this.getClass().getDeclaredMethods()) + { + if ((m.getModifiers() & Method.PUBLIC) == Method.PUBLIC) + { + data.put(m.getName(), new ExecuteMethod(m, this)); + } + } + String templateName = StringUtils.replace(this.getClass().getName(), ".", "/") + ".html"; + data.put("this", this); + try + { + this.configuration.setTemplateLoader(new ClassTemplateLoader(this.getClass(), "/")); + Template t = this.configuration.getTemplate(templateName, getLocale()); + StringWriter out = new StringWriter(); + t.process(data, out); + body = out.toString(); + } + catch (TemplateException e) + { + throw new NotificationException(e); + } + catch (IOException e) + { + throw new NotificationException(e); + } + + } + return body; + } + + /** + * {@inheritDoc} + */ + @Override + public abstract String getMessageSubject(); + + public class ExecuteMethod implements TemplateMethodModelEx + { + + private Method method; + + private Object parent; + + public ExecuteMethod(Method method, Object parent) + { + this.method = method; + this.parent = parent; + } + + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + @Override + public Object exec(List arguments) throws TemplateModelException + { + try + { + if (arguments == null || arguments.size() == 0) + { + return method.invoke(parent); + } + else + { + List unwrappedArgs = new ArrayList(); + for (Object o : arguments) + { + unwrappedArgs.add(((BeanModel) o).getWrappedObject()); + } + + if (unwrappedArgs.size() == 1) + { + return method.invoke(parent, unwrappedArgs.iterator().next()); + + } + else + { + return method.invoke(parent, unwrappedArgs.toArray(new Object[unwrappedArgs.size()])); + } + } + } + catch (IllegalAccessException ex) + { + throw new TemplateModelException(ex); + } + catch (IllegalArgumentException ex) + { + throw new TemplateModelException(ex); + } + catch (InvocationTargetException ex) + { + throw new TemplateModelException(ex); + } + } + + } + + /** + * {@inheritDoc} + */ + @Override + public List<MimeBodyPart> getAttachments() + { + return null; + } + + /** + * Sets the data. + * @param data the data to set + */ + public void setData(Map<String, Object> data) + { + this.data = data; + } + +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/SmsNotification.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/SmsNotification.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/messages/SmsNotification.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,33 @@ +package net.sourceforge.openutils.notifications.messages; + +import net.sourceforge.openutils.notifications.Notification; + +/** + * @author molaschi + * @version $Id: $ + */ +public abstract class SmsNotification implements Notification +{ + + public static String BEAN_NAME = "smsNotifier"; + + /** + * {@inheritDoc} + */ + @Override + public final String getNotifierBeanName() + { + return BEAN_NAME; + } + + /** + * {@inheritDoc} + */ + @Override + public final String getMessageSubject() + { + // TODO Auto-generated method stub + return null; + } + +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/EmailNotifier.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/EmailNotifier.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/EmailNotifier.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,186 @@ +package net.sourceforge.openutils.notifications.notifiers; + +import java.util.List; +import java.util.Properties; + +import javax.mail.Address; +import javax.mail.MessagingException; +import javax.mail.Session; +import javax.mail.Transport; +import javax.mail.Message.RecipientType; +import javax.mail.internet.InternetAddress; +import javax.mail.internet.MimeBodyPart; +import javax.mail.internet.MimeMessage; +import javax.mail.internet.MimeMultipart; + +import net.sourceforge.openutils.notifications.Notification; +import net.sourceforge.openutils.notifications.NotificationException; +import net.sourceforge.openutils.notifications.messages.EmailNotification; + +import org.apache.commons.lang.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author molaschi + * @version $Id: $ + */ +public class EmailNotifier implements Notifier +{ + + /** + * Logger. + */ + private Logger log = LoggerFactory.getLogger(EmailNotifier.class); + + private String mailHost; + + private String mailPort; + + private boolean async = false; + + /** + * {@inheritDoc} + */ + @Override + public boolean send(String from, List<String> toAddresses, List<String> ccAddresses, List<String> ccnAddresses, + Notification notification) throws NotificationException + { + if (log.isDebugEnabled() && notification != null) + { + log.debug("Subject: {}", notification.getMessageSubject()); + log.debug("Body: {}", notification.getMessageBody()); + } + + Properties props = new Properties(); // System.getProperties(); should I try to use the system properties ? + props.put("mail.smtp.host", this.mailHost); + props.put("mail.smtp.port", this.mailPort); + + Session smtpSession = Session.getInstance(props); + MimeMessage message = new MimeMessage(smtpSession); + + List<MimeBodyPart> attachments = ((EmailNotification) notification).getAttachments(); + try + { + message.addFrom(new Address[]{new InternetAddress(from) }); + message.setSubject(notification.getMessageSubject()); + if (attachments == null || attachments.size() == 0) + { + message.setContent(notification.getMessageBody(), "text/html; charset=UTF-8"); + } + else + { + MimeMultipart multiPart = new MimeMultipart(); + + MimeBodyPart text = new MimeBodyPart(); + text.setContent(notification.getMessageBody(), "text/html; charset=UTF-8"); + + multiPart.addBodyPart(text); + + for (MimeBodyPart mbp : attachments) + { + multiPart.addBodyPart(mbp); + } + + message.setContent(multiPart); + } + } + catch (MessagingException ex) + { + throw new NotificationException(ex); + } + + for (String to : toAddresses) + { + try + { + message.setRecipient(RecipientType.TO, new InternetAddress(to)); + + if (ccAddresses != null) + { + for (String address : ccAddresses) + { + if (StringUtils.isNotEmpty(address)) + { + message.addRecipient(RecipientType.CC, new InternetAddress(address)); + } + } + } + if (ccnAddresses != null) + { + for (String address : ccnAddresses) + { + if (StringUtils.isNotEmpty(address)) + { + message.addRecipient(RecipientType.BCC, new InternetAddress(address)); + } + } + } + Transport.send(message); + } + catch (MessagingException ex) + { + throw new NotificationException(ex); + } + + } + + return true; + } + + /** + * Returns the mailHost. + * @return the mailHost + */ + public String getMailHost() + { + return mailHost; + } + + /** + * Sets the mailHost. + * @param mailHost the mailHost to set + */ + public void setMailHost(String mailHost) + { + this.mailHost = mailHost; + } + + /** + * Returns the mailPort. + * @return the mailPort + */ + public String getMailPort() + { + return mailPort; + } + + /** + * Sets the mailPort. + * @param mailPort the mailPort to set + */ + public void setMailPort(String mailPort) + { + this.mailPort = mailPort; + } + + /** + * Returns the async. + * @return the async + */ + public boolean isAsync() + { + return async; + } + + /** + * Sets the async. + * @param async the async to set + */ + public void setAsync(boolean async) + { + this.async = async; + } + +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/FreemarkerEmailNotifier.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/FreemarkerEmailNotifier.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/FreemarkerEmailNotifier.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,56 @@ +package net.sourceforge.openutils.notifications.notifiers; + +import java.util.List; +import java.util.Map; + +import net.sourceforge.openutils.notifications.Notification; +import net.sourceforge.openutils.notifications.NotificationException; +import net.sourceforge.openutils.notifications.messages.FreemarkerEmailNotification; +import freemarker.template.Configuration; + + +/** + * @author molaschi + * @version $Id: $ + */ +public class FreemarkerEmailNotifier extends EmailNotifier +{ + + Configuration configuration; + + Map<String, Object> data; + + /** + * Sets the data. + * @param data the data to set + */ + public void setData(Map<String, Object> data) + { + this.data = data; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean send(String from, List<String> toAddresses, List<String> ccAddresses, List<String> ccnAddresses, + Notification notification) throws NotificationException + { + if (notification instanceof FreemarkerEmailNotification) + { + ((FreemarkerEmailNotification) notification).setConfiguration(configuration); + ((FreemarkerEmailNotification) notification).setData(data); + } + return super.send(from, toAddresses, ccAddresses, ccnAddresses, notification); + } + + /** + * Sets the configuration. + * @param configuration the configuration to set + */ + public void setConfiguration(Configuration configuration) + { + this.configuration = configuration; + } + +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/Notifier.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/Notifier.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/Notifier.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,27 @@ +package net.sourceforge.openutils.notifications.notifiers; + +import java.util.List; + +import net.sourceforge.openutils.notifications.Notification; +import net.sourceforge.openutils.notifications.NotificationException; + + +/** + * @author molaschi + * @version $Id: $ + */ +public interface Notifier +{ + + /** + * Send method + * @param from sender + * @param toAddresses list of receivers + * @param ccAddresses list of cc addresses + * @param ccnAddresses list of ccn addresses + * @param notification notification class + * @return true if send succeed + */ + boolean send(String from, List<String> toAddresses, List<String> ccAddresses, List<String> ccnAddresses, + Notification notification) throws NotificationException; +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/SMSNotifier.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/SMSNotifier.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/notifiers/SMSNotifier.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,194 @@ +package net.sourceforge.openutils.notifications.notifiers; + +import java.util.List; + +import net.sourceforge.openutils.notifications.Notification; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * @author molaschi + * @version $Id: $ + */ +public class SMSNotifier implements Notifier +{ + + /** + * Logger. + */ + private Logger log = LoggerFactory.getLogger(SMSNotifier.class); + + private String smsGateway; + + private String userId; + + private String password; + + private String passwordProperty; + + private String userIdProperty; + + private String cellNumProperty; + + private String textProperty; + + /** + * {@inheritDoc} + */ + @Override + public boolean send(String from, List<String> toAddresses, List<String> ccAddress, List<String> ccnAddresses, + Notification notification) + { + String url = smsGateway; + if (url.indexOf("?") < 0) + { + url += "?"; + } + else + { + url += "&"; + } + + for (String to : toAddresses) + { + /* + * GetMethod request = new GetMethod(smsGateway); request.setQueryString(new NameValuePair[]{ new + * NameValuePair(userIdProperty, userId), new NameValuePair(passwordProperty, password), new + * NameValuePair(cellNumProperty, to), new NameValuePair(textProperty, notification.getMessageBody()) }); + * HttpClient client = new HttpClient(); try { client.executeMethod(request); } catch (HttpException ex) { + * log.error("Exception sending sms", ex); } catch (IOException ex) { log.error("Exception sending sms", + * ex); } + */ + } + return true; + } + + /** + * Returns the smsGateway. + * @return the smsGateway + */ + public String getSmsGateway() + { + return smsGateway; + } + + /** + * Sets the smsGateway. + * @param smsGateway the smsGateway to set + */ + public void setSmsGateway(String smsGateway) + { + this.smsGateway = smsGateway; + } + + /** + * Returns the userId. + * @return the userId + */ + public String getUserId() + { + return userId; + } + + /** + * Sets the userId. + * @param userId the userId to set + */ + public void setUserId(String userId) + { + this.userId = userId; + } + + /** + * Returns the password. + * @return the password + */ + public String getPassword() + { + return password; + } + + /** + * Sets the password. + * @param password the password to set + */ + public void setPassword(String password) + { + this.password = password; + } + + /** + * Returns the passwordProperty. + * @return the passwordProperty + */ + public String getPasswordProperty() + { + return passwordProperty; + } + + /** + * Sets the passwordProperty. + * @param passwordProperty the passwordProperty to set + */ + public void setPasswordProperty(String passwordProperty) + { + this.passwordProperty = passwordProperty; + } + + /** + * Returns the userIdProperty. + * @return the userIdProperty + */ + public String getUserIdProperty() + { + return userIdProperty; + } + + /** + * Sets the userIdProperty. + * @param userIdProperty the userIdProperty to set + */ + public void setUserIdProperty(String userIdProperty) + { + this.userIdProperty = userIdProperty; + } + + /** + * Returns the cellNumProperty. + * @return the cellNumProperty + */ + public String getCellNumProperty() + { + return cellNumProperty; + } + + /** + * Sets the cellNumProperty. + * @param cellNumProperty the cellNumProperty to set + */ + public void setCellNumProperty(String cellNumProperty) + { + this.cellNumProperty = cellNumProperty; + } + + /** + * Returns the textProperty. + * @return the textProperty + */ + public String getTextProperty() + { + return textProperty; + } + + /** + * Sets the textProperty. + * @param textProperty the textProperty to set + */ + public void setTextProperty(String textProperty) + { + this.textProperty = textProperty; + } + +} \ No newline at end of file Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/DefaultNotificationManagerImpl.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/DefaultNotificationManagerImpl.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/DefaultNotificationManagerImpl.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,90 @@ +package net.sourceforge.openutils.notifications.services; + +import java.util.Arrays; +import java.util.List; + +import net.sourceforge.openutils.notifications.Notification; +import net.sourceforge.openutils.notifications.NotificationException; +import net.sourceforge.openutils.notifications.notifiers.Notifier; + +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; + + +/** + * @author molaschi + * @version $Id: $ + */ +public class DefaultNotificationManagerImpl implements ApplicationContextAware, NotificationManager +{ + + private ApplicationContext context; + + /** + * {@inheritDoc} + */ + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException + { + this.context = applicationContext; + } + + /** + * {@inheritDoc} + */ + public boolean send(String from, List<String> toAddresses, List<String> ccAddresses, Notification notification) + throws NotificationException + { + Notifier notifier = (Notifier) context.getBean(notification.getNotifierBeanName()); + return notifier.send(from, toAddresses, ccAddresses, null, notification); + } + + /** + * {@inheritDoc} + */ + public boolean send(String from, List<String> toAddresses, List<String> ccAddresses, List<String> ccnAddresses, + Notification notification) throws NotificationException + { + Notifier notifier = (Notifier) context.getBean(notification.getNotifierBeanName()); + return notifier.send(from, toAddresses, ccAddresses, ccnAddresses, notification); + } + + /** + * {@inheritDoc} + */ + public boolean send(String from, String toAddress, List<String> ccAddresses, Notification notification) + throws NotificationException + { + Notifier notifier = (Notifier) context.getBean(notification.getNotifierBeanName()); + return notifier.send(from, Arrays.asList(toAddress), ccAddresses, null, notification); + } + + /** + * {@inheritDoc} + */ + public boolean send(String from, String toAddress, List<String> ccAddresses, List<String> ccnAddresses, + Notification notification) throws NotificationException + { + Notifier notifier = (Notifier) context.getBean(notification.getNotifierBeanName()); + return notifier.send(from, Arrays.asList(toAddress), ccAddresses, ccnAddresses, notification); + } + + /** + * {@inheritDoc} + */ + public boolean send(String from, String toAddress, Notification notification) throws NotificationException + { + Notifier notifier = (Notifier) context.getBean(notification.getNotifierBeanName()); + return notifier.send(from, Arrays.asList(toAddress), null, null, notification); + } + + /** + * {@inheritDoc} + */ + public boolean send(String from, List<String> toAddresses, Notification notification) throws NotificationException + { + Notifier notifier = (Notifier) context.getBean(notification.getNotifierBeanName()); + return notifier.send(from, toAddresses, null, null, notification); + } +} Added: trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/NotificationManager.java =================================================================== --- trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/NotificationManager.java (rev 0) +++ trunk/openutils-notifications/src/main/java/net/sourceforge/openutils/notifications/services/NotificationManager.java 2008-12-16 14:16:26 UTC (rev 957) @@ -0,0 +1,86 @@ +package net.sourceforge.openutils.notifications.services; + +import java.util.List; + +import net.sourceforge.openutils.notifications.Notification; +import net.sourceforge.openutils.notifications.NotificationException; + + +/** + * @author molaschi + * @version $Id: $ + */ +public interface NotificationManager +{ + + /** + * Send notification + * @param from sender + * @param toAddresses list of receivers + * @param ccAddresses list of cc + * @param notification notification + * @param <T> Class that extends Notification interface + * @return true if mail is sent + */ + boolean send(String from, List<String> toAddresses, List<String> ccAddresses, Notification notification) + throws NotificationException; + + /** + * Send notification + * @param from sender + * @param toAddresses list of receivers + * @param ccAddresses list of cc + * @param ccnAddresses list of ccn + * @param notification notification + * @param <T> Class that extends Notification interface + * @return true if mail is sent + */ + boolean send(String from, List<String> toAddresses, List<String> ccAddresses, List<String> ccnAddresses, + Notification notification) throws NotificationException; + + /** + * Send notification + * @param from sender + * @param toAddress receiver + * @param ccAddresses list of cc + * @param notification notification + * @param <T> Class that extends Notification interface + * @return true if mail is sent + */ + boolean send(String from, String toAddress, List<String> ccAddresses, Notification notification) + throws NotificationException; + + /** + * Send notification + * @param from sender + * @param toAddress receiver + * @param ccAddresses list of cc + * @param ccnAddresses list of ccn + * @param notification notification + * @param <T> Class that extends Notification interface + * @return true if mail is sent + */ + boolean send(String from, String toAddress, List<String> ccAddresses, List<String> ccnAddresses, + Notification notification) throws NotificationException; + + /** + * Send notification + * @param from sender + * @param toAddress receiver + * @param notification notification + * @param <T> Class that extends Notification interface + * @return true if mail is sent + */ + boolean send(String from, String toAddress, Notification notification) throws NotificationException; + + /** + * Send notification + * @param from sender + * @param toAddresses list of receivers + * @param notification notification + * @param <T> Class that extends Notification interface + * @return true if mail is sent + */ + boolean send(String from, List<String> toAddresses, Notification notification) throws NotificationException; + +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-12-15 18:09:34
|
Revision: 956 http://openutils.svn.sourceforge.net/openutils/?rev=956&view=rev Author: fgiust Date: 2008-12-15 18:09:30 +0000 (Mon, 15 Dec 2008) Log Message: ----------- don't overwrite target uri if the page has not been rendered by Magnolia Modified Paths: -------------- trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlLinkTag.java Modified: trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java =================================================================== --- trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java 2008-12-11 18:23:03 UTC (rev 955) +++ trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlFormTag.java 2008-12-15 18:09:30 UTC (rev 956) @@ -46,6 +46,13 @@ @Override protected String renderFormStartElement() { + String pageUri = (String) this.pageContext.getRequest().getAttribute(MgnlStrutsUtils.ATTRIBUTE_ORIGINALURI); + + if (pageUri == null) + { + return super.renderFormStartElement(); + } + HttpServletResponse response = (HttpServletResponse) this.pageContext.getResponse(); // String actionUrl = response.encodeURL(RequestUtils.getActionMappingURL(this.action, this.pageContext)); @@ -65,7 +72,6 @@ results.append("\" action=\""); // results.append(actionUrl); - String pageUri = (String) this.pageContext.getRequest().getAttribute(MgnlStrutsUtils.ATTRIBUTE_ORIGINALURI); String mgnlDest = MgnlStrutsUtils.extractDestinationFromClass( (HttpServletRequest) pageContext.getRequest(), styleClass); Modified: trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlLinkTag.java =================================================================== --- trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlLinkTag.java 2008-12-11 18:23:03 UTC (rev 955) +++ trunk/openutils-mgnlstruts11/src/main/java/it/openutils/mgnlstruts11/taglib/MgnlLinkTag.java 2008-12-15 18:09:30 UTC (rev 956) @@ -52,7 +52,13 @@ @Override protected String calculateURL() throws JspException { + String pageUri = (String) this.pageContext.getRequest().getAttribute(MgnlStrutsUtils.ATTRIBUTE_ORIGINALURI); + if (pageUri == null) + { + return super.calculateURL(); + } + // Identify the parameters we will add to the completed URL Map<String, String> params = RequestUtils.computeParameters( pageContext, @@ -98,8 +104,6 @@ } } - String pageUri = (String) this.pageContext.getRequest().getAttribute(MgnlStrutsUtils.ATTRIBUTE_ORIGINALURI); - String styleClass = getStyleClass(); String mgnlDest = MgnlStrutsUtils.extractDestinationFromClass( (HttpServletRequest) pageContext.getRequest(), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-12-11 18:23:13
|
Revision: 955 http://openutils.svn.sourceforge.net/openutils/?rev=955&view=rev Author: fgiust Date: 2008-12-11 18:23:03 +0000 (Thu, 11 Dec 2008) Log Message: ----------- [maven-release-plugin] prepare for next development iteration Modified Paths: -------------- trunk/openutils-elfunctions/pom.xml Modified: trunk/openutils-elfunctions/pom.xml =================================================================== --- trunk/openutils-elfunctions/pom.xml 2008-12-11 18:22:44 UTC (rev 954) +++ trunk/openutils-elfunctions/pom.xml 2008-12-11 18:23:03 UTC (rev 955) @@ -9,7 +9,7 @@ <packaging>jar</packaging> <artifactId>openutils-elfunctions</artifactId> <name>openutils-elfunctions</name> - <version>1.0</version> + <version>1.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>commons-lang</groupId> @@ -38,10 +38,4 @@ </plugin> </plugins> </reporting> - - <scm> - <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-elfunctions-1.0</connection> - <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-elfunctions-1.0</developerConnection> - <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-elfunctions-1.0</url> - </scm> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-12-11 18:22:53
|
Revision: 954 http://openutils.svn.sourceforge.net/openutils/?rev=954&view=rev Author: fgiust Date: 2008-12-11 18:22:44 +0000 (Thu, 11 Dec 2008) Log Message: ----------- [maven-release-plugin] copy for tag openutils-elfunctions-1.0 Added Paths: ----------- tags/openutils-elfunctions-1.0/ tags/openutils-elfunctions-1.0/pom.xml Removed Paths: ------------- tags/openutils-elfunctions-1.0/pom.xml Deleted: tags/openutils-elfunctions-1.0/pom.xml =================================================================== --- trunk/openutils-elfunctions/pom.xml 2008-12-11 16:37:40 UTC (rev 951) +++ tags/openutils-elfunctions-1.0/pom.xml 2008-12-11 18:22:44 UTC (rev 954) @@ -1,41 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <parent> - <groupId>net.sourceforge.openutils</groupId> - <artifactId>openutils</artifactId> - <version>10</version> - <relativePath>..</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <packaging>jar</packaging> - <artifactId>openutils-elfunctions</artifactId> - <name>openutils-elfunctions</name> - <dependencies> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.4</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <classifier>jdk15</classifier> - <version>5.1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - <reporting> - <plugins> - <plugin> - <groupId>net.sourceforge.maven-taglib</groupId> - <artifactId>maven-taglib-plugin</artifactId> - </plugin> - </plugins> - </reporting> -</project> \ No newline at end of file Copied: tags/openutils-elfunctions-1.0/pom.xml (from rev 953, trunk/openutils-elfunctions/pom.xml) =================================================================== --- tags/openutils-elfunctions-1.0/pom.xml (rev 0) +++ tags/openutils-elfunctions-1.0/pom.xml 2008-12-11 18:22:44 UTC (rev 954) @@ -0,0 +1,47 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <parent> + <groupId>net.sourceforge.openutils</groupId> + <artifactId>openutils</artifactId> + <version>10</version> + <relativePath>..</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <packaging>jar</packaging> + <artifactId>openutils-elfunctions</artifactId> + <name>openutils-elfunctions</name> + <version>1.0</version> + <dependencies> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.4</version> + </dependency> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <classifier>jdk15</classifier> + <version>5.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <reporting> + <plugins> + <plugin> + <groupId>net.sourceforge.maven-taglib</groupId> + <artifactId>maven-taglib-plugin</artifactId> + </plugin> + </plugins> + </reporting> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-elfunctions-1.0</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-elfunctions-1.0</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-elfunctions-1.0</url> + </scm> +</project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fg...@us...> - 2008-12-11 18:22:05
|
Revision: 953 http://openutils.svn.sourceforge.net/openutils/?rev=953&view=rev Author: fgiust Date: 2008-12-11 18:22:00 +0000 (Thu, 11 Dec 2008) Log Message: ----------- [maven-release-plugin] prepare release openutils-elfunctions-1.0 Modified Paths: -------------- trunk/openutils-elfunctions/pom.xml Modified: trunk/openutils-elfunctions/pom.xml =================================================================== --- trunk/openutils-elfunctions/pom.xml 2008-12-11 17:29:20 UTC (rev 952) +++ trunk/openutils-elfunctions/pom.xml 2008-12-11 18:22:00 UTC (rev 953) @@ -1,5 +1,4 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>net.sourceforge.openutils</groupId> <artifactId>openutils</artifactId> @@ -10,7 +9,7 @@ <packaging>jar</packaging> <artifactId>openutils-elfunctions</artifactId> <name>openutils-elfunctions</name> - <version>1.0-SNAPSHOT</version> + <version>1.0</version> <dependencies> <dependency> <groupId>commons-lang</groupId> @@ -39,4 +38,10 @@ </plugin> </plugins> </reporting> + + <scm> + <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-elfunctions-1.0</connection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/tags/openutils-elfunctions-1.0</developerConnection> + <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/tags/openutils-elfunctions-1.0</url> + </scm> </project> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |