adammurdoch 02/02/14 23:36:06
Modified: proposal/myrmidon/src/java/org/apache/myrmidon/framework/factorys
Resources.properties
proposal/myrmidon/src/manifest builtin-ant-roles.xml
core-services.xml
Added: proposal/myrmidon/src/java/org/apache/myrmidon/framework/factorys
VfsManagerFactory.java
Log:
* Added exec-manager and file-system-manager roles.
* Added a very basic VFS manager service implementation.
Revision Changes Path
1.2 +2 -1
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/factorys/Resources.properties
Index: Resources.properties
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/factorys/Resources.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Resources.properties 26 Jan 2002 04:17:06 -0000 1.1
+++ Resources.properties 15 Feb 2002 07:36:06 -0000 1.2
@@ -1 +1,2 @@
-missing-home-dir.error=Cannot locate antRun scripts: Property
'myrmidon.home' not specified
\ No newline at end of file
+missing-home-dir.error=Cannot locate antRun scripts: Property
'myrmidon.home' not specified
+create-vfs-manager.error=Could not create the VFS manager.
\ No newline at end of file
1.1
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/factorys/VfsManagerFactory.java
Index: VfsManagerFactory.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmidon.framework.factorys;
import org.apache.aut.vfs.FileSystemManager;
import org.apache.aut.vfs.impl.DefaultFileSystemManager;
import org.apache.myrmidon.interfaces.service.ServiceFactory;
import org.apache.myrmidon.interfaces.service.ServiceException;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.avalon.excalibur.i18n.ResourceManager;
/**
* A factory that creates the [EMAIL PROTECTED] FileSystemManager} service.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Adam Murdoch</a>
* @version $Revision: 1.1 $ $Date: 2002/02/15 07:36:06 $
*/
public class VfsManagerFactory
implements ServiceFactory
{
private final static Resources REZ
= ResourceManager.getPackageResources( VfsManagerFactory.class );
/**
* Create a service that coresponds to this factory.
*/
public Object createService()
throws ServiceException
{
try
{
return new DefaultFileSystemManager();
}
catch( Exception e )
{
final String message = REZ.getString( "create-vfs-manager.error"
);
throw new ServiceException( message );
}
}
}
1.8 +9 -7
jakarta-ant/proposal/myrmidon/src/manifest/builtin-ant-roles.xml
Index: builtin-ant-roles.xml
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/manifest/builtin-ant-roles.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- builtin-ant-roles.xml 14 Feb 2002 09:41:41 -0000 1.7
+++ builtin-ant-roles.xml 15 Feb 2002 07:36:06 -0000 1.8
@@ -1,9 +1,11 @@
<roles version="1.0">
- <role shorthand="task" name="org.apache.myrmidon.api.Task"/>
- <role shorthand="data-type"
name="org.apache.myrmidon.framework.DataType"/>
- <role shorthand="listener"
name="org.apache.myrmidon.listeners.ProjectListener"/>
- <role shorthand="aspect"
name="org.apache.myrmidon.aspects.AspectHandler"/>
- <role shorthand="project-builder"
name="org.apache.myrmidon.interfaces.builder.ProjectBuilder"/>
- <role shorthand="converter"
name="org.apache.myrmidon.converter.Converter"/>
- <role shorthand="configurer"
name="org.apache.myrmidon.interfaces.configurer.Configurer"/>
+ <role shorthand="task" name="org.apache.myrmidon.api.Task"/>
+ <role shorthand="data-type"
name="org.apache.myrmidon.framework.DataType"/>
+ <role shorthand="listener"
name="org.apache.myrmidon.listeners.ProjectListener"/>
+ <role shorthand="aspect"
name="org.apache.myrmidon.aspects.AspectHandler"/>
+ <role shorthand="project-builder"
name="org.apache.myrmidon.interfaces.builder.ProjectBuilder"/>
+ <role shorthand="converter"
name="org.apache.myrmidon.converter.Converter"/>
+ <role shorthand="configurer"
name="org.apache.myrmidon.interfaces.configurer.Configurer"/>
+ <role shorthand="exec-manager"
name="org.apache.aut.nativelib.ExecManager"/>
+ <role shorthand="file-system-manager"
name="org.apache.aut.vfs.FileSystemManager"/>
</roles>
1.2 +9 -4
jakarta-ant/proposal/myrmidon/src/manifest/core-services.xml
Index: core-services.xml
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/manifest/core-services.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- core-services.xml 26 Jan 2002 04:17:06 -0000 1.1
+++ core-services.xml 15 Feb 2002 07:36:06 -0000 1.2
@@ -1,4 +1,9 @@
-<services>
- <service role="org.apache.aut.nativelib.ExecManager"
-
factory="org.apache.myrmidon.framework.factorys.ExecManagerFactory"/>
-</services>
\ No newline at end of file
+<services version="1.0">
+ <exec-manager
factory="org.apache.myrmidon.framework.factorys.ExecManagerFactory"/>
+ <file-system-manager
factory="org.apache.myrmidon.framework.factorys.VfsManagerFactory">
+ <provider scheme="zip"
classname="org.apache.aut.vfs.provider.zip.ZipFileSystemProvider"/>
+ <provider scheme="jar"
classname="org.apache.aut.vfs.provider.zip.ZipFileSystemProvider"/>
+ <provider scheme="smb"
classname="org.apache.aut.vfs.provider.smb.SmbFileSystemProvider"/>
+ <provider scheme="ftp"
classname="org.apache.aut.vfs.provider.ftp.FtpFileSystemProvider"/>
+ </file-system-manager>
+</services>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>