You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by ae...@apache.org on 2007/02/28 17:12:30 UTC
svn commit: r512821 - in
/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator:
./ projectizer/
Author: aeberbac
Date: Wed Feb 28 08:12:29 2007
New Revision: 512821
URL: http://svn.apache.org/viewvc?view=rev&rev=512821
Log:
MUSE-199: Work in progress but I'm waiting on someone to give me details about OSGi stuff.
So I'm checking this in and moving on to MUSE 102. The only thing that we need here is
a working OsgiMiniProjectizer.
Added:
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEAxis2Projectizer.java
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEMiniProjectizer.java
- copied, changed from r511818, webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/MiniProjectizer.java
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiAxis2Projectizer.java
- copied, changed from r511283, webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiProjectizer.java
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiMiniProjectizer.java
Modified:
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2Java.java
webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2JavaConstants.java
Modified: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2Java.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2Java.java?view=diff&rev=512821&r1=512820&r2=512821
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2Java.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2Java.java Wed Feb 28 08:12:29 2007
@@ -21,9 +21,10 @@
import org.apache.muse.tools.generator.analyzer.Analyzer;
import org.apache.muse.tools.generator.analyzer.SimpleAnalyzer;
-import org.apache.muse.tools.generator.projectizer.Axis2Projectizer;
-import org.apache.muse.tools.generator.projectizer.MiniProjectizer;
-import org.apache.muse.tools.generator.projectizer.OsgiProjectizer;
+import org.apache.muse.tools.generator.projectizer.J2EEAxis2Projectizer;
+import org.apache.muse.tools.generator.projectizer.J2EEMiniProjectizer;
+import org.apache.muse.tools.generator.projectizer.OsgiAxis2Projectizer;
+import org.apache.muse.tools.generator.projectizer.OsgiMiniProjectizer;
import org.apache.muse.tools.generator.projectizer.Projectizer;
import org.apache.muse.tools.generator.projectizer.ProxyProjectizer;
import org.apache.muse.tools.generator.synthesizer.ProxySynthesizer;
@@ -116,11 +117,11 @@
// we need to load all of the wsdl files it contains.
//
if(wsdlFile != null) {
- env = new WsdlEnvironment(wsdlFile.getParentFile());
+ env = new WsdlEnvironment(wsdlFile.getAbsoluteFile().getParentFile());
wsdlDocuments = new Document[] { getWSDLDocument(wsdlFile.getName(), env) };
metadataDescriptors = new MetadataDescriptor[] { getMetadataDescriptor(wsdlFile.getName(), env, wsdlDocuments[0]) };
} else {
- env = new WsdlEnvironment(descriptorFile.getParentFile());
+ env = new WsdlEnvironment(descriptorFile.getAbsoluteFile().getParentFile());
wsdlDocuments = getWSDLDocuments(descriptorFile, descriptorDocument);
metadataDescriptors = getMetadataDescriptors(descriptorFile, descriptorDocument);
}
@@ -168,8 +169,6 @@
* @throws Exception If anything goes wrong during code generation.
*/
public void run() throws Exception {
- checkComponents();
-
_projectizer.projectize(
_synthesizer.synthesize(
_analyzer.analyze(_configuration)
@@ -178,35 +177,6 @@
}
/**
- * Sanity-check to make sure that each of the projectizers is non-null. If it is null
- * it is set to a default.
- *
- * Currently:
- * <ul>
- * <li>Default Analyzer: SimpleAnalyzer</li>
- * <li>Default Synthesizer: ServerSynthesizer</li>
- * <li>Default Projectizer: Axis2Projectizer</li>
- * </ul>
- *
- * @see SimpleAnalyzer
- * @see ServerSynthesizer
- * @see Axis2Projectizer
- */
- private void checkComponents() {
- if (_synthesizer == null) {
- _synthesizer = new ServerSynthesizer();
- }
-
- if (_projectizer == null) {
- _projectizer = new MiniProjectizer();
- }
-
- if (_analyzer == null) {
- _analyzer = new SimpleAnalyzer();
- }
- }
-
- /**
* Sets the analyzer to use during code generation.
*
* @param analyzer
@@ -361,6 +331,8 @@
arguments.saveFlagValue(DESCRIPTOR_FLAG);
arguments.saveFlagValue(BASE_DESCRIPTOR_FLAG);
arguments.saveFlagValue(OUTPUT_FLAG);
+ arguments.saveFlagValue(J2EE_FLAG);
+ arguments.saveFlagValue(OSGI_FLAG);
arguments.parse(args);
return arguments;
@@ -384,10 +356,8 @@
ANALYZER_FLAG,
SYNTHESIZER_FLAG,
PROJECTIZER_FLAG,
- BASE_DESCRIPTOR_FLAG,
- AXIS2_FLAG,
+ BASE_DESCRIPTOR_FLAG,
OSGI_FLAG,
- MINI_FLAG,
PROXY_FLAG,
HEADERS_FLAG,
QUIET_FLAG,
@@ -516,7 +486,7 @@
* be on the classpath. Of course, it must implement <code>Analyzer</code>.
*
* @param arguments The command line arguments
- * @return An <code>Analzyer</code> or null if the flag was absent
+ * @return An <code>Analzyer</code> or SimpleAnalyzer if the flag was absent
*
* @see Analyzer
*/
@@ -532,6 +502,8 @@
}
analyzer = (Analyzer) loadClass(arguments.getFlagValue(ANALYZER_FLAG), Analyzer.class);
+ } else {
+ return new SimpleAnalyzer();
}
return analyzer;
@@ -548,8 +520,6 @@
* @see Synthesizer
*/
private static Synthesizer checkSynthesizerArg(CommandLine arguments) {
- Synthesizer synthesizer = null;
-
if (arguments.hasFlag(PROXY_FLAG)) {
return new ProxySynthesizer();
}
@@ -562,10 +532,10 @@
handleErrorAndExit(_MESSAGES.get("NullSynthesizer", filler));
}
- synthesizer = (Synthesizer) loadClass(arguments.getFlagValue(SYNTHESIZER_FLAG), Synthesizer.class);
+ return (Synthesizer) loadClass(arguments.getFlagValue(SYNTHESIZER_FLAG), Synthesizer.class);
}
- return synthesizer;
+ return new ServerSynthesizer();
}
/**
@@ -585,18 +555,32 @@
return new ProxyProjectizer();
}
- if(arguments.hasFlag(AXIS2_FLAG)) {
- return new Axis2Projectizer();
+ if(arguments.hasFlag(J2EE_FLAG)) {
+ String type = arguments.getFlagValue(J2EE_FLAG);
+ if(type == null) {
+ throw new RuntimeException();
+ } else if(type.equals(MINI_TYPE)) {
+ return new J2EEMiniProjectizer();
+ } else if(type.equals(AXIS2_TYPE)){
+ return new J2EEAxis2Projectizer();
+ } else {
+ throw new RuntimeException();
+ }
}
- if(arguments.hasFlag(OSGI_FLAG)) {
- return new OsgiProjectizer();
- }
-
- if(arguments.hasFlag(MINI_FLAG)) {
- return new MiniProjectizer();
- }
-
+ if(arguments.hasFlag(OSGI_FLAG)) {
+ String type = arguments.getFlagValue(OSGI_FLAG);
+ if(type == null) {
+ throw new RuntimeException();
+ } else if(type.equals(MINI_TYPE)) {
+ return new OsgiMiniProjectizer();
+ } else if(type.equals(AXIS2_TYPE)){
+ return new OsgiAxis2Projectizer();
+ } else {
+ throw new RuntimeException();
+ }
+ }
+
String projectizerArg = arguments.getFlagValue(PROJECTIZER_FLAG);
if (arguments.hasFlag(PROJECTIZER_FLAG)) {
Modified: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2JavaConstants.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2JavaConstants.java?view=diff&rev=512821&r1=512820&r2=512821
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2JavaConstants.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/Wsdl2JavaConstants.java Wed Feb 28 08:12:29 2007
@@ -52,9 +52,11 @@
String OSGI_FLAG = "-osgi";
- String MINI_FLAG = "-mini";
+ String MINI_TYPE = " mini";
- String AXIS2_FLAG = "-axis2";
+ String AXIS2_TYPE = "axis2";
+
+ String J2EE_FLAG = "-j2ee";
String PROXY_FLAG = "-proxy";
Added: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEAxis2Projectizer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEAxis2Projectizer.java?view=auto&rev=512821
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEAxis2Projectizer.java (added)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEAxis2Projectizer.java Wed Feb 28 08:12:29 2007
@@ -0,0 +1,256 @@
+/*=============================================================================*
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *=============================================================================*/
+
+package org.apache.muse.tools.generator.projectizer;
+
+import java.io.File;
+import java.io.InputStream;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.muse.tools.generator.util.Capability;
+import org.apache.muse.tools.generator.util.ConfigurationData;
+import org.apache.muse.tools.generator.util.ConfigurationDataDescriptor;
+import org.apache.muse.tools.generator.util.DeploymentDescriptorHelper;
+import org.apache.muse.tools.generator.util.ServicesDescriptorHelper;
+import org.apache.muse.util.FileUtils;
+import org.apache.muse.ws.notification.WsnConstants;
+import org.apache.muse.ws.resource.metadata.MetadataDescriptor;
+import org.apache.muse.ws.resource.metadata.impl.WsrmdUtils;
+import org.apache.muse.ws.resource.sg.WssgConstants;
+import org.apache.muse.ws.wsdl.WsdlUtils;
+import org.w3c.dom.Document;
+
+/**
+ *
+ * A Projectizer for generating projects that target the J2EE Axis2 platform.
+ *
+ * This projectizer will create a directory structure as follow:
+ *
+ * <ul>
+ * <li>JavaSource/: if there is any source to generate it will go into this folder</li>
+ * <li>WebContent/: this is a folder that has underneath it an exploded WAR that
+ * has all of the descriptors required to deploy to a J2EE server. This
+ * also includes WSDL and muse.xml descriptors.</li>
+ * <li>build.xml: an Ant build script that will build in the current directory and
+ * generate a packaged WAR file that is ready to be deployed. This build script
+ * will compile what's in JavaSource, package it as a jar, put it into
+ * WebContent/WEB-INF/lib and then create the WAR from the contents of
+ * WebContent.</li>
+ * </ul>
+ *
+ * @author Andrew Eberbach (aeberbac)
+ */
+public class J2EEAxis2Projectizer extends AbstractProjectizer {
+
+ static ConfigurationDataDescriptor[] REQUIRED_PARAMETERS =
+ new ConfigurationDataDescriptor[] {
+ ConfigurationData.FILES_MAP_LIST_CONFIGURATION,
+ ConfigurationData.DESCRIPTOR_DOCUMENT_CONFIGURATION,
+ ConfigurationData.WSDL_DOCUMENT_LIST_CONFIGURATION,
+ ConfigurationData.OVERWRITE_CONFIGURATION,
+ ConfigurationData.CAPABILITIES_MAP_LIST_CONFIGURATION
+ };
+
+ protected Map[] _capabilitiesList = null;
+
+ protected Map[] _filesMaps = null;
+
+ protected Document _descriptor = null;
+
+ protected Document[] _wsdls = null;
+
+ protected Set[] _ignoreSets;
+
+ private MetadataDescriptor[] _metadatas;
+
+ public void projectize(ConfigurationData configuration) throws Exception {
+ ConfigurationData.checkConfiguration(this, configuration);
+
+ loadParameters(configuration);
+
+ File webContentDir = new File(
+ _targetDirectory,
+ Axis2ProjectizerConstants.WEB_CONTENT_DIR);
+
+ File javaSourceDir = new File(
+ _targetDirectory,
+ Axis2ProjectizerConstants.JAVA_SRC_DIR);
+
+ createDirectoryStructure(webContentDir);
+ createJavaSources(javaSourceDir, _filesMaps, _ignoreSets);
+ createArtifacts(webContentDir);
+
+ createOverwriteManifest();
+ }
+
+ private void createDirectoryStructure(File webContentDir) throws Exception {
+ File templateDir = new File(
+ System.getProperty(Axis2ProjectizerConstants.MUSE_HOME_PROPERTY),
+ Axis2ProjectizerConstants.TEMPLATE_DIR);
+
+ copyTemplate(templateDir, webContentDir);
+
+ File libDir = new File(
+ webContentDir,
+ Axis2ProjectizerConstants.LIB_DIR);
+
+ File modulesDir = new File(
+ System.getProperty(Axis2ProjectizerConstants.MUSE_HOME_PROPERTY),
+ Axis2ProjectizerConstants.MODULES_DIR);
+
+ copyJars(Axis2ProjectizerConstants.REQUIRED_MODULES, modulesDir, libDir);
+ }
+
+ private void createArtifacts(File webContentDir) throws Exception {
+ File descriptorFile = new File(
+ webContentDir,
+ Axis2ProjectizerConstants.DESCRIPTOR_FILE);
+
+ File wsdldir = new File(
+ webContentDir,
+ Axis2ProjectizerConstants.WSDL_DIR);
+
+ File routerEntriesDir = new File(
+ webContentDir,
+ Axis2ProjectizerConstants.ROUTER_ENTRIES_DIR);
+
+ File servicesFile = new File(
+ webContentDir,
+ Axis2ProjectizerConstants.SERVICES_FILE);
+
+ ServicesDescriptorHelper servicesHelper = new ServicesDescriptorHelper();
+
+ for(int i=0; i < _capabilitiesList.length; i++) {
+ Map capabilities = _capabilitiesList[i];
+ Document wsdl = _wsdls[i];
+ MetadataDescriptor rmd = _metadatas[i];
+
+ createDescriptor(
+ _descriptor,
+ wsdl,
+ descriptorFile,
+ capabilities,
+ Axis2ProjectizerConstants.WSDL_RELATIVE_PATH,
+ i);
+
+ createWSDLFile(wsdl, wsdldir);
+
+ createRMDFile(rmd, wsdl, wsdldir);
+
+ createRouterEntries(
+ routerEntriesDir,
+ WsdlUtils.getServiceName(wsdl.getDocumentElement()),
+ capabilities);
+
+ updateServicesDescriptor(servicesHelper, wsdl, capabilities);
+ }
+
+ createServicesDescriptor(servicesHelper, servicesFile);
+
+ createBuildFile(
+ _targetDirectory,
+ Axis2ProjectizerConstants.BUILD_FILE_RESOURCE,
+ Axis2ProjectizerConstants.BUILD_FILE);
+ }
+
+ protected void createServicesDescriptor(ServicesDescriptorHelper servicesHelper, File servicesFile) throws Exception {
+ writeToFileCheck(servicesHelper.getDocument(), servicesFile);
+ }
+
+ protected void loadParameters(ConfigurationData configuration) {
+ _capabilitiesList = (Map[])configuration.getParameter(ConfigurationData.CAPABILITIES_MAP_LIST);
+ _filesMaps = (Map[])configuration.getParameter(ConfigurationData.FILES_MAP_LIST);
+ _descriptor = (Document)configuration.getParameter(ConfigurationData.DESCRIPTOR_DOCUMENT);
+ _wsdls = (Document[])configuration.getParameter(ConfigurationData.WSDL_DOCUMENT_LIST);
+ _ignoreSets = (Set[])configuration.getParameter(ConfigurationData.IGNORE_SET_LIST);
+ _metadatas = (MetadataDescriptor[])configuration.getParameter(ConfigurationData.METADATA_DESCRIPTOR_LIST);
+
+ boolean overwrite = ((Boolean)configuration.getParameter(ConfigurationData.OVERWRITE)).booleanValue();
+ setTargetDirectory((File)configuration.getParameter(ConfigurationData.TARGET_DIRECTORY), overwrite);
+ }
+
+ protected void createWSDLFile(Document wsdl, File wsdldir) throws Exception {
+ File wsdlFile = new File(getWsdlFileName(wsdldir.getPath(), wsdl));
+ writeToFileCheck(wsdl, wsdlFile);
+ }
+
+ protected void createRMDFile(MetadataDescriptor rmd, Document wsdl, File wsdldir) throws Exception {
+ if(rmd == null) {
+ return;
+ }
+
+ File rmdFile = new File(getMetadataFileName(wsdldir.getPath(), wsdl));
+ writeToFileCheck(WsrmdUtils.createMetadataDocument(rmd), rmdFile);
+ }
+
+ protected void createBuildFile(File baseTargetDir, String buildFileResource, String buildFile) throws Exception {
+ InputStream buildTemplate = FileUtils.loadFromContext(this.getClass(),buildFileResource);
+ File build = new File(baseTargetDir, buildFile);
+ copyStreamCheck(buildTemplate, build);
+ }
+
+ protected void updateServicesDescriptor(ServicesDescriptorHelper servicesHelper, Document wsdl, Map capabilities) {
+ String serviceName = WsdlUtils.getServiceName(wsdl.getDocumentElement());
+ servicesHelper.createService(serviceName);
+
+ for (Iterator i = capabilities.values().iterator(); i.hasNext();) {
+ servicesHelper.addActionMappings((Capability) i.next(), serviceName);
+ }
+ }
+
+ protected void createDescriptor(Document descriptorDocument, Document wsdl, File descriptorFile, Map capabilities, String wsdlRelativePath, int resourceIndex) throws Exception {
+ //
+ // no additional muse.xml for subscriptions or SG entries
+ //
+ if (capabilities.keySet().contains(WsnConstants.SUBSCRIPTION_MGR_URI) ||
+ capabilities.keySet().contains(WssgConstants.ENTRY_URI))
+ return;
+
+ DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
+
+ //update the wsdl file location
+ helper.setWsdlFile(getWsdlFileName(wsdlRelativePath, wsdl));
+
+ //update the service name
+ helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
+
+ //update the name of the class that is the base resource
+ helper.setJavaResourceClass(getResourceClass(capabilities).getName());
+
+ //add the capabilities
+ for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
+ helper.addCapability((Capability)i.next());
+ }
+
+ writeToFileCheck(descriptorDocument, descriptorFile);
+ }
+
+ protected Class getResourceClass(Map capabilities) {
+ for(Iterator i = capabilities.values().iterator(); i.hasNext();) {
+ Capability capability = (Capability)i.next();
+ if(capability.getProperties().size() > 0) {
+ return org.apache.muse.ws.resource.impl.SimpleWsResource.class;
+ }
+ }
+ return org.apache.muse.core.SimpleResource.class;
+ }
+
+ public ConfigurationDataDescriptor[] getConfigurationDataDescriptions() {
+ return REQUIRED_PARAMETERS;
+ }
+}
\ No newline at end of file
Copied: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEMiniProjectizer.java (from r511818, webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/MiniProjectizer.java)
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEMiniProjectizer.java?view=diff&rev=512821&p1=webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/MiniProjectizer.java&r1=511818&p2=webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEMiniProjectizer.java&r2=512821
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/MiniProjectizer.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/J2EEMiniProjectizer.java Wed Feb 28 08:12:29 2007
@@ -19,7 +19,7 @@
import org.apache.muse.ws.resource.sg.WssgConstants;
import org.w3c.dom.Document;
-public class MiniProjectizer extends AbstractProjectizer {
+public class J2EEMiniProjectizer extends AbstractProjectizer {
static ConfigurationDataDescriptor[] REQUIRED_PARAMETERS =
new ConfigurationDataDescriptor[] {
Copied: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiAxis2Projectizer.java (from r511283, webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiProjectizer.java)
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiAxis2Projectizer.java?view=diff&rev=512821&p1=webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiProjectizer.java&r1=511283&p2=webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiAxis2Projectizer.java&r2=512821
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiProjectizer.java (original)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiAxis2Projectizer.java Wed Feb 28 08:12:29 2007
@@ -34,7 +34,7 @@
*
* @author Andrew Eberbach (aeberbac)
*/
-public class OsgiProjectizer extends Axis2Projectizer {
+public class OsgiAxis2Projectizer extends J2EEAxis2Projectizer {
static ConfigurationDataDescriptor[] REQUIRED_PARAMETERS =
new ConfigurationDataDescriptor[] {
@@ -98,7 +98,7 @@
}
protected void createConfigIni(File destDir, String configFileResource, String configFileName) throws Exception {
- InputStream configIS = FileUtils.loadFromContext(OsgiProjectizer.class,configFileResource );
+ InputStream configIS = FileUtils.loadFromContext(OsgiAxis2Projectizer.class,configFileResource );
File configFile = new File(destDir, configFileName);
copyStreamCheck(configIS, configFile);
@@ -109,7 +109,7 @@
}
protected void createActivatorFile(File srcDir, String activatorFileResource) throws Exception {
- InputStream activatorTemplateIS = FileUtils.loadFromContext(OsgiProjectizer.class, activatorFileResource);
+ InputStream activatorTemplateIS = FileUtils.loadFromContext(OsgiAxis2Projectizer.class, activatorFileResource);
Object[] filler = { getSymbolicName() };
String newActivator = loadString(activatorTemplateIS, filler);
@@ -122,7 +122,7 @@
}
protected void createManifest(File baseTargetDir, String manifestFileResource, String manifestFileName, String activatorFileName) throws Exception {
- InputStream manifestTemplateIS = FileUtils.loadFromContext(OsgiProjectizer.class ,manifestFileResource);
+ InputStream manifestTemplateIS = FileUtils.loadFromContext(OsgiAxis2Projectizer.class ,manifestFileResource);
Object[] filler = { getSymbolicName(), activatorFileName, getSymbolicName(), getSymbolicName() };
String newManifest = loadString(manifestTemplateIS, filler);
Added: webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiMiniProjectizer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiMiniProjectizer.java?view=auto&rev=512821
==============================================================================
--- webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiMiniProjectizer.java (added)
+++ webservices/muse/trunk/modules/muse-tools/src/org/apache/muse/tools/generator/projectizer/OsgiMiniProjectizer.java Wed Feb 28 08:12:29 2007
@@ -0,0 +1,18 @@
+package org.apache.muse.tools.generator.projectizer;
+
+import org.apache.muse.tools.generator.util.ConfigurationData;
+import org.apache.muse.tools.generator.util.ConfigurationDataDescriptor;
+
+public class OsgiMiniProjectizer extends J2EEMiniProjectizer {
+
+ public void projectize(ConfigurationData data) throws Exception {
+ // TODO Auto-generated method stub
+
+ }
+
+ public ConfigurationDataDescriptor[] getConfigurationDataDescriptions() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org