JBossWS SVN: r15980 - common-tools/branches.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:40:04 -0400 (Fri, 16 Mar 2012)
New Revision: 15980
Added:
common-tools/branches/jbossws-common-tools-1.0.x/
Log:
creating EAP branch
12 years, 9 months
JBossWS SVN: r15979 - stack/cxf/trunk.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:36:29 -0400 (Fri, 16 Mar 2012)
New Revision: 15979
Modified:
stack/cxf/trunk/pom.xml
Log:
use jbossws-common-tools trunk & freeze jbossws-api
Modified: stack/cxf/trunk/pom.xml
===================================================================
--- stack/cxf/trunk/pom.xml 2012-03-16 11:35:02 UTC (rev 15978)
+++ stack/cxf/trunk/pom.xml 2012-03-16 11:36:29 UTC (rev 15979)
@@ -59,10 +59,10 @@
<!-- Properties -->
<properties>
- <jbossws.api.version>1.0.1-SNAPSHOT</jbossws.api.version>
+ <jbossws.api.version>1.0.0.GA</jbossws.api.version>
<jbossws.spi.version>2.1.0-SNAPSHOT</jbossws.spi.version>
<jbossws.common.version>2.1.0-SNAPSHOT</jbossws.common.version>
- <jbossws.common.tools.version>1.0.0.GA</jbossws.common.tools.version>
+ <jbossws.common.tools.version>1.1.0-SNAPSHOT</jbossws.common.tools.version>
<jbossws.shared.testsuite.version>4.1.0-SNAPSHOT</jbossws.shared.testsuite.version>
<jbossws.jboss701.version>4.0.1.GA</jbossws.jboss701.version>
<jbossws.jboss702.version>4.0.1.GA</jbossws.jboss702.version>
12 years, 9 months
JBossWS SVN: r15978 - stack/native/trunk.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:35:02 -0400 (Fri, 16 Mar 2012)
New Revision: 15978
Modified:
stack/native/trunk/pom.xml
Log:
use jbossws-common-tools trunk & freeze jbossws-api
Modified: stack/native/trunk/pom.xml
===================================================================
--- stack/native/trunk/pom.xml 2012-03-16 11:28:36 UTC (rev 15977)
+++ stack/native/trunk/pom.xml 2012-03-16 11:35:02 UTC (rev 15978)
@@ -58,10 +58,10 @@
<!-- Properties -->
<properties>
- <jbossws.api.version>1.0.1-SNAPSHOT</jbossws.api.version>
+ <jbossws.api.version>1.0.0.GA</jbossws.api.version>
<jbossws.spi.version>2.1.0-SNAPSHOT</jbossws.spi.version>
<jbossws.common.version>2.1.0-SNAPSHOT</jbossws.common.version>
- <jbossws.common.tools.version>1.0.0.GA</jbossws.common.tools.version>
+ <jbossws.common.tools.version>1.1.0-SNAPSHOT</jbossws.common.tools.version>
<jbossws.shared.testsuite.version>4.1.0-SNAPSHOT</jbossws.shared.testsuite.version>
<jbossws.jboss701.version>4.0.1.GA</jbossws.jboss701.version>
<jbossws.jboss702.version>4.0.1.GA</jbossws.jboss702.version>
12 years, 9 months
JBossWS SVN: r15977 - common-tools/trunk.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:28:36 -0400 (Fri, 16 Mar 2012)
New Revision: 15977
Modified:
common-tools/trunk/pom.xml
Log:
prepare for next. dev cycle
Modified: common-tools/trunk/pom.xml
===================================================================
--- common-tools/trunk/pom.xml 2012-03-16 11:08:57 UTC (rev 15976)
+++ common-tools/trunk/pom.xml 2012-03-16 11:28:36 UTC (rev 15977)
@@ -9,7 +9,7 @@
<packaging>jar</packaging>
<description>JBossWS Common Tools</description>
- <version>1.0.1-SNAPSHOT</version>
+ <version>1.1.0-SNAPSHOT</version>
<parent>
<groupId>org.jboss.ws</groupId>
12 years, 9 months
JBossWS SVN: r15976 - in shared-testsuite/trunk/testsuite/src/test: java/org/jboss/test/ws and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:08:57 -0400 (Fri, 16 Mar 2012)
New Revision: 15976
Removed:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/projectGenerator/
Modified:
shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml
Log:
[JBWS-3461] removing project generator
Modified: shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml
===================================================================
--- shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml 2012-03-16 11:08:05 UTC (rev 15975)
+++ shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml 2012-03-16 11:08:57 UTC (rev 15976)
@@ -594,7 +594,6 @@
<sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
<sysproperty key="test.username" value="${test.username}"/>
<sysproperty key="test.password" value="${test.password}"/>
- <sysproperty key="binary.distribution" value="true"/>
<classpath>
<path refid="tests.client.classpath"/>
<pathelement location="${tests.output.dir}/test-classes"/>
@@ -661,7 +660,6 @@
<sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
<sysproperty key="test.username" value="${test.username}"/>
<sysproperty key="test.password" value="${test.password}"/>
- <sysproperty key="binary.distribution" value="true"/>
<classpath>
<path refid="tests.client.classpath"/>
<pathelement location="${tests.output.dir}/test-classes"/>
@@ -698,32 +696,4 @@
<delete dir="${tests.output.dir}"/>
</target>
- <!-- ================================================================== -->
- <!-- Eclipse conf generation -->
- <!-- ================================================================== -->
-
- <target name="eclipse" depends="tests-jars" description="Generates the JBossWS Testsuite Eclipse project">
- <fail message="Sorry, this target is for src/binary distribution only.">
- <condition>
- <not>
- <isset property="build.dir"/>
- </not>
- </condition>
- </fail>
- <path id="tests.eclipse.classpath">
- <path refid="tests.client.classpath"/>
- <path refid="tests.javac.classpath"/>
- </path>
- <taskdef name="eclipseClasspathGenerator" classname="org.jboss.ws.tools.ant.EclipseClasspathTask" classpathref="ws.stack.classpath"/>
- <taskdef name="eclipseProjectGenerator" classname="org.jboss.ws.tools.ant.EclipseProjectTask" classpathref="ws.stack.classpath"/>
- <taskdef name="eclipseJUnitTestGenerator" classname="org.jboss.ws.tools.ant.EclipseJUnitTestsTask" classpathref="ws.stack.classpath"/>
- <eclipseClasspathGenerator pathId="tests.eclipse.classpath" excludesFile="${excludesfile}" srcPath="tests/java"/>
- <eclipseProjectGenerator projectName="JBossWS Testsuite"/>
- <eclipseJUnitTestGenerator projectName="JBossWS Testsuite" projectWorkingDir="${tests.output.dir}" srcDir="${tests.dir}/test-java"
- integrationTarget="${jbossws.integration.target}" endorsedDir="${endorsed.dirs}" jbossHome="${jboss.home}" namingProviderUrl="${node0.jndi.url}"
- securityPolicy="${tests.output.dir}/test-classes/tst.policy" testResourcesDir="${tests.output.dir}/test-resources" testLibsDir="${tests.output.dir}/test-libs">
- <fileset dir="${tests.output.dir}/test-classes" includes="org/jboss/test/ws/**/*TestCase.class" excludes="exclude.wildcard"/>
- </eclipseJUnitTestGenerator>
- </target>
-
</project>
12 years, 9 months
JBossWS SVN: r15975 - common-tools/trunk/src/main/java/org/jboss/ws/tools/ant.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:08:05 -0400 (Fri, 16 Mar 2012)
New Revision: 15975
Removed:
common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseClasspathTask.java
common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseJUnitTestsTask.java
common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseProjectTask.java
common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/FixPathTask.java
common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/PathWriterTask.java
Log:
[JBWS-3461] removing project generator
Deleted: common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseClasspathTask.java
===================================================================
--- common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseClasspathTask.java 2012-03-16 11:07:10 UTC (rev 15974)
+++ common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseClasspathTask.java 2012-03-16 11:08:05 UTC (rev 15975)
@@ -1,184 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.tools.ant;
-
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.Task;
-import org.apache.tools.ant.types.Path;
-
-/**
- * An Ant task creating a simple Eclipse .classpath file using the provided
- * Ant's path id.
- *
- * @author alessio.soldano(a)jboss.com
- * @since 15-Feb-2008
- */
-public class EclipseClasspathTask extends Task
-{
- private String pathId;
- private String excludesFile;
- private String outputFile;
- private String srcPath;
- private String srcOutput;
-
- @Override
- public void execute() throws BuildException
- {
- Project project = getProject();
- Path path = (Path)project.getReference(pathId);
- String[] pathElements = path.list();
- try
- {
- List<String> excludes = getExcludes();
- StringBuffer sb = new StringBuffer();
- generateContent(sb, excludes, pathElements);
- File file = outputFile != null ? new File(outputFile) : new File(getProject().getBaseDir(), ".classpath");
- BufferedWriter out = new BufferedWriter(new FileWriter(file));
- out.write(sb.toString());
- out.close();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- throw new BuildException(e);
- }
- }
-
- private void generateContent(StringBuffer sb, List<String> excludes, String[] libs)
- {
- sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
- sb.append("<classpath>\n");
- sb.append("<classpathentry ");
- if (excludes != null && !excludes.isEmpty())
- {
- sb.append("excluding=\"");
- for (Iterator<String> it = excludes.iterator(); it.hasNext();)
- {
- sb.append(it.next());
- if (it.hasNext())
- sb.append("|");
- }
- sb.append("\" ");
- }
- sb.append("kind=\"src\" ");
- if (srcOutput != null)
- {
- sb.append("output=\"");
- sb.append(srcOutput);
- sb.append("\" ");
- }
- if (srcPath != null)
- {
- sb.append("path=\"");
- sb.append(srcPath);
- sb.append("\" ");
- }
- sb.append("/>\n");
- sb.append("<classpathentry kind=\"con\" path=\"org.eclipse.jdt.launching.JRE_CONTAINER\"/>\n");
- for (int i = 0; i < libs.length; i++)
- {
- if (new File(libs[i]).exists() && libs[i].endsWith(".jar")) //jar files only can be used as lib entry
- {
- sb.append("<classpathentry kind=\"lib\" path=\"");
- sb.append(absoluteToRelativePath(libs[i]));
- sb.append("\"/>\n");
- }
- }
- sb.append("<classpathentry kind=\"output\" path=\"bin\"/>\n");
- sb.append("</classpath>");
- }
-
- private List<String> getExcludes() throws IOException
- {
- List<String> excludes = new LinkedList<String>();
- if (excludesFile != null)
- {
- BufferedReader in = null;
- try
- {
- in = new BufferedReader(new FileReader(excludesFile));
- String str;
- while ((str = in.readLine()) != null)
- {
- if (str.length() > 0 && !str.startsWith("#"))
- excludes.add(str);
- }
- }
- finally
- {
- if (in != null)
- in.close();
- }
- }
- return excludes;
- }
-
- private String absoluteToRelativePath(String absolutePath)
- {
- String baseDir = getProject().getBaseDir().toString();
- String result = absolutePath;
- if (absolutePath.startsWith(baseDir))
- {
- result = absolutePath.substring(baseDir.length());
- if (result.startsWith("\\") || result.startsWith("/"))
- result = result.substring(1);
- }
- return result;
- }
-
- public void setPathId(String pathId)
- {
- this.pathId = pathId;
- }
-
- public void setExcludesFile(String excludesFile)
- {
- this.excludesFile = excludesFile;
- }
-
- public void setOutputFile(String outputFile)
- {
- this.outputFile = outputFile;
- }
-
- public void setSrcPath(String srcPath)
- {
- this.srcPath = srcPath;
- }
-
- public void setSrcOutput(String srcOutput)
- {
- this.srcOutput = srcOutput;
- }
-
-}
Deleted: common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseJUnitTestsTask.java
===================================================================
--- common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseJUnitTestsTask.java 2012-03-16 11:07:10 UTC (rev 15974)
+++ common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseJUnitTestsTask.java 2012-03-16 11:08:05 UTC (rev 15975)
@@ -1,266 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.tools.ant;
-
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-import java.util.LinkedHashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.DirectoryScanner;
-import org.apache.tools.ant.Task;
-import org.apache.tools.ant.types.FileSet;
-
-/**
- * An Ant task creating Eclipse's launch configuration files for the JUnit tests
- * of the test-suite.
- *
- * @author alessio.soldano(a)jboss.com
- * @since 18-Feb-2008
- */
-public class EclipseJUnitTestsTask extends Task
-{
- private String projectName;
- private String projectWorkingDir; // the Eclipse project working dir, i.e. the output dir
- private String testResourcesDir; //the dir containing the resources files
- private String testLibsDir; //the dir containing the libs files
- private String srcDir; // the tests src dir
- private String integrationTarget;
- private String jbossHome;
- private String endorsedDir;
- private String namingProviderUrl;
- private String securityPolicy;
- private FileSet fileset;
-
- @Override
- public void execute() throws BuildException
- {
- try
- {
- DirectoryScanner dsc = fileset.getDirectoryScanner(getProject());
- String[] classes = dsc.getIncludedFiles();
- for (int i = 0; i < classes.length; i++)
- {
- String clazz = classes[i];
- File file = new File(getProject().getBaseDir(), pathToClassName(clazz) + ".launch");
- BufferedWriter out = new BufferedWriter(new FileWriter(file));
- out.write(getSingleTestConf(clazz).toString());
- out.close();
- }
- }
- catch (Exception e)
- {
- e.printStackTrace();
- throw new BuildException(e);
- }
- }
-
- public FileSet createFileset()
- {
- this.fileset = new FileSet();
- return fileset;
- }
-
- private static String pathToFullClassName(String path)
- {
- // remove ".class" and replace slashes and backslashes with a dot
- return path.substring(0, path.length() - 6).replaceAll("\\\\", ".").replaceAll("/", ".");
- }
-
- private static String pathToClassName(String path)
- {
- String fullClassName = pathToFullClassName(path);
- return fullClassName.substring(fullClassName.lastIndexOf(".") + 1);
- }
-
- private LaunchConfiguration getSingleTestConf(String clazz)
- {
- LaunchConfiguration conf = new LaunchConfiguration();
- conf.addEntryToListAttribute("org.eclipse.debug.core.MAPPED_RESOURCE_PATHS", "/" + projectName + "/" + absoluteToRelativePath(srcDir) + "/"
- + clazz.substring(0, clazz.length() - 6) + ".java");
- conf.addEntryToListAttribute("org.eclipse.debug.core.MAPPED_RESOURCE_TYPES", "1");
- conf.putBooleanAttribute("org.eclipse.debug.core.appendEnvironmentVariables", true);
- conf.putBooleanAttribute("org.eclipse.jdt.junit.KEEPRUNNING_ATTR", false);
- conf.putStringAttribute("org.eclipse.jdt.junit.CONTAINER", "");
- conf.putStringAttribute("org.eclipse.jdt.junit.TESTNAME", "");
- conf.putStringAttribute("org.eclipse.jdt.junit.TEST_KIND", "org.eclipse.jdt.junit.loader.junit3");
- conf.putStringAttribute("org.eclipse.jdt.launching.MAIN_TYPE", pathToFullClassName(clazz));
- conf.putStringAttribute("org.eclipse.jdt.launching.PROJECT_ATTR", projectName);
- // computing the userDir; please note we get the relative path since we use the Eclipse $workspace_loc variable
- String userDir = "${workspace_loc:" + projectName + "}/" + absoluteToRelativePath(projectWorkingDir);
- String resourcesDir = "${workspace_loc:" + projectName + "}/" + absoluteToRelativePath(testResourcesDir);
- String libsDir = "${workspace_loc:" + projectName + "}/" + absoluteToRelativePath(testLibsDir);
- conf.putStringAttribute("org.eclipse.jdt.launching.VM_ARGUMENTS", getVMArguments(userDir, resourcesDir, libsDir));
- conf.putStringAttribute("org.eclipse.jdt.launching.WORKING_DIRECTORY", userDir);
- return conf;
- }
-
- private String getVMArguments(String userDir, String resourcesDir, String libsDir)
- {
- StringBuffer sb = new StringBuffer();
- sb.append("-Djbossws.integration.target=").append(integrationTarget);
- sb.append(" -ea ");
- sb.append("-Dtest.execution.dir=").append(userDir);
- sb.append(" -Djava.endorsed.dirs=").append(endorsedDir);
- sb.append(" ");
- sb.append("-Djava.naming.provider.url=").append(namingProviderUrl);
- sb.append(" -Djava.protocol.handler.pkgs=org.jboss.virtual.protocol ");
- sb.append("-Djava.security.policy=").append(absoluteToRelativePath(securityPolicy));
- sb.append(" -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory ");
- sb.append("-Duser.dir=").append(userDir);
- sb.append(" -Djboss.home=").append(jbossHome);
- sb.append(" -Djdk.home=${env_var:JAVA_HOME}");
- sb.append(" -Dtest.archive.directory=").append(libsDir);
- sb.append(" -Dtest.resources.directory=").append(resourcesDir);
- sb.append(" -Dbinary.distribution=true");
- return sb.toString();
- }
-
- private String absoluteToRelativePath(String absolutePath)
- {
- String baseDir = getProject().getBaseDir().toString();
- if (!absolutePath.startsWith(baseDir))
- throw new IllegalArgumentException("The provided absolute path is outside the current basedir: " + baseDir);
- return absolutePath.substring(baseDir.length() + 1);
- }
-
- public void setSrcDir(String srcDir)
- {
- this.srcDir = srcDir;
- }
-
- public void setProjectName(String projectName)
- {
- this.projectName = projectName;
- }
-
- public void setProjectWorkingDir(String projectWorkingDir)
- {
- this.projectWorkingDir = projectWorkingDir;
- }
-
- public void setIntegrationTarget(String integrationTarget)
- {
- this.integrationTarget = integrationTarget;
- }
-
- public void setJbossHome(String jbossHome)
- {
- this.jbossHome = jbossHome;
- }
-
- public void setNamingProviderUrl(String namingProviderUrl)
- {
- this.namingProviderUrl = namingProviderUrl;
- }
-
- public void setSecurityPolicy(String securityPolicy)
- {
- this.securityPolicy = securityPolicy;
- }
-
- public void setEndorsedDir(String endorsedDir)
- {
- this.endorsedDir = endorsedDir;
- }
-
- public void setTestResourcesDir(String testResourcesDir)
- {
- this.testResourcesDir = testResourcesDir;
- }
-
- public void setTestLibsDir(String testLibsDir)
- {
- this.testLibsDir = testLibsDir;
- }
-
- private class LaunchConfiguration
- {
- private Map<String, String> booleanAttributes = new LinkedHashMap<String, String>();
- private Map<String, String> stringAttributes = new LinkedHashMap<String, String>();
- private Map<String, List<String>> listAttributes = new LinkedHashMap<String, List<String>>();
-
- public String toString()
- {
- StringBuffer sb = new StringBuffer();
- sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
- sb.append("<launchConfiguration type=\"org.eclipse.jdt.junit.launchconfig\">\n");
- for (String key : listAttributes.keySet())
- {
- sb.append("<listAttribute key=\"").append(key).append("\">\n");
- for (String value : listAttributes.get(key))
- {
- sb.append("<listEntry value=\"").append(value).append("\"/>\n");
- }
- sb.append("</listAttribute>\n");
- }
- for (String key : booleanAttributes.keySet())
- {
- sb.append("<booleanAttribute key=\"").append(key);
- sb.append("\" value=\"").append(booleanAttributes.get(key)).append("\"/>\n");
- }
- for (String key : stringAttributes.keySet())
- {
- sb.append("<stringAttribute key=\"").append(key);
- sb.append("\" value=\"").append(stringAttributes.get(key)).append("\"/>\n");
- }
- sb.append("</launchConfiguration>");
- return sb.toString();
- }
-
- public Map<String, String> getBooleanAttributes()
- {
- return booleanAttributes;
- }
-
- public void putBooleanAttribute(String name, boolean value)
- {
- this.booleanAttributes.put(name, String.valueOf(value));
- }
-
- public Map<String, String> getStringAttributes()
- {
- return stringAttributes;
- }
-
- public void putStringAttribute(String name, String value)
- {
- this.stringAttributes.put(name, value);
- }
-
- public Map<String, List<String>> getListAttributes()
- {
- return listAttributes;
- }
-
- public void addEntryToListAttribute(String attribute, String entryValue)
- {
- if (!listAttributes.containsKey(attribute))
- listAttributes.put(attribute, new LinkedList<String>());
- listAttributes.get(attribute).add(entryValue);
- }
- }
-}
Deleted: common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseProjectTask.java
===================================================================
--- common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseProjectTask.java 2012-03-16 11:07:10 UTC (rev 15974)
+++ common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/EclipseProjectTask.java 2012-03-16 11:08:05 UTC (rev 15975)
@@ -1,96 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.tools.ant;
-
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Task;
-
-/**
- * An Ant task creating a simple Eclipse .project file using the provided project name.
- *
- * @author alessio.soldano(a)jboss.com
- * @since 18-Feb-2008
- */
-public class EclipseProjectTask extends Task
-{
- private String projectName;
- private String outputFile;
-
- @Override
- public void execute() throws BuildException
- {
- try
- {
- StringBuffer sb = new StringBuffer();
- generateContent(sb);
- File file;
- if (outputFile != null)
- file = new File(outputFile);
- else
- file = new File(getProject().getBaseDir(), ".project");
- BufferedWriter out = new BufferedWriter(new FileWriter(file));
- out.write(sb.toString());
- out.close();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- throw new BuildException(e);
- }
- }
-
- private void generateContent(StringBuffer sb)
- {
- sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
- sb.append("<projectDescription>\n <name>");
- sb.append(projectName);
- sb.append("</name>\n" +
- " <comment></comment>\n" +
- " <projects>\n" +
- " </projects>\n" +
- " <buildSpec>\n" +
- " <buildCommand>\n" +
- " <name>org.eclipse.jdt.core.javabuilder</name>\n" +
- " <arguments>\n" +
- " </arguments>\n" +
- " </buildCommand>\n" +
- " </buildSpec>\n" +
- " <natures>\n" +
- " <nature>org.eclipse.jdt.core.javanature</nature>\n" +
- " </natures>\n" +
- "</projectDescription>");
- }
-
- public void setProjectName(String projectName)
- {
- this.projectName = projectName;
- }
-
- public void setOutputFile(String outputFile)
- {
- this.outputFile = outputFile;
- }
-}
Deleted: common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/FixPathTask.java
===================================================================
--- common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/FixPathTask.java 2012-03-16 11:07:10 UTC (rev 15974)
+++ common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/FixPathTask.java 2012-03-16 11:08:05 UTC (rev 15975)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.tools.ant;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Task;
-
-public class FixPathTask extends Task
-{
- private String propertyName;
-
- @Override
- public void execute() throws BuildException
- {
- String path = getProject().getProperty(propertyName);
-
- if (path != null)
- {
- getProject().setProperty(propertyName, path.replace('\\', '/'));
- }
- }
-
- public void setProperty(String propertyName)
- {
- this.propertyName = propertyName;
- }
-}
Deleted: common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/PathWriterTask.java
===================================================================
--- common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/PathWriterTask.java 2012-03-16 11:07:10 UTC (rev 15974)
+++ common-tools/trunk/src/main/java/org/jboss/ws/tools/ant/PathWriterTask.java 2012-03-16 11:08:05 UTC (rev 15975)
@@ -1,117 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.tools.ant;
-
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-import java.util.StringTokenizer;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.Task;
-import org.apache.tools.ant.types.Path;
-
-/**
- * An Ant task that writes a given path element to a file, so that
- * it can be easily imported by other build files.
- *
- * @author alessio.soldano(a)jboss.com
- * @since 13-Mar-2008
- */
-public class PathWriterTask extends Task
-{
- private String pathId;
- private String outputFile;
- private String variables; //to perform path substitution, i.e. jboss.home <--> /dati/jboss-4.2.3.GA
-
- @Override
- public void execute() throws BuildException
- {
- Project project = getProject();
- Path path = (Path)project.getReference(pathId);
- String[] pathElements = path.list();
- try
- {
- StringBuffer sb = new StringBuffer();
- generateContent(sb, pathElements);
- BufferedWriter out = new BufferedWriter(new FileWriter(new File(outputFile)));
- out.write(sb.toString());
- out.close();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- throw new BuildException(e);
- }
- }
-
- private void generateContent(StringBuffer sb, String[] libs)
- {
- sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
- sb.append("<project>\n");
- sb.append("<path id=\"");
- sb.append(pathId);
- sb.append("\">");
- for (int i = 0; i < libs.length; i++)
- {
- sb.append("<pathelement location=\"");
- sb.append(getPath(libs[i]));
- sb.append("\"/>\n");
- }
- sb.append("</path>");
- sb.append("</project>\n");
- }
-
- private String getPath(String absolutePath)
- {
- StringTokenizer st = new StringTokenizer(variables, ";:, ", false);
- while (st.hasMoreTokens())
- {
- String v = st.nextToken();
- String value = getProject().getProperty(v);
- if (absolutePath.contains(value))
- {
- int begin = absolutePath.indexOf(value);
- int end = begin + value.length();
- absolutePath = absolutePath.substring(0, begin) + "${" + v + "}" + absolutePath.substring(end);
- }
- }
- return absolutePath;
- }
-
- public void setPathId(String pathId)
- {
- this.pathId = pathId;
- }
-
- public void setOutputFile(String outputFile)
- {
- this.outputFile = outputFile;
- }
-
- public void setVariables(String variables)
- {
- this.variables = variables;
- }
-
-}
12 years, 9 months
JBossWS SVN: r15974 - in stack/native/trunk/modules/dist/src/main: scripts and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:07:10 -0400 (Fri, 16 Mar 2012)
New Revision: 15974
Removed:
stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml
stack/native/trunk/modules/dist/src/main/distro/user-project-build.xml
Modified:
stack/native/trunk/modules/dist/src/main/distro/build.xml
stack/native/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml
Log:
[JBWS-3461] removing project generator
Deleted: stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml
===================================================================
--- stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml 2012-03-16 11:06:18 UTC (rev 15973)
+++ stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml 2012-03-16 11:07:10 UTC (rev 15974)
@@ -1,157 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ JBoss, Home of Professional Open Source.
- ~ Copyright 2010, Red Hat, Inc., and individual contributors
- ~ as indicated by the @author tags. See the copyright.txt file in the
- ~ distribution for a full listing of individual contributors.
- ~
- ~ This is free software; you can redistribute it and/or modify it
- ~ under the terms of the GNU Lesser General Public License as
- ~ published by the Free Software Foundation; either version 2.1 of
- ~ the License, or (at your option) any later version.
- ~
- ~ This software is distributed in the hope that it will be useful,
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details.
- ~
- ~ You should have received a copy of the GNU Lesser General Public
- ~ License along with this software; if not, write to the Free
- ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- -->
-
-<project>
-
- <target name="init-project-properties" depends="tests-init">
- <fail message="Did you copy the ant.properties.example to ant.properties?" unless="jboss.home"/>
- <property file="./user-project.properties" />
- <property name="project.home" value="${workspace.home}/${project.name}"/>
-
- <filterset id="project">
- <filter token="projectName" value="${project.name}" />
- <filter token="jbossHome" value="${project.jboss.home}" />
- </filterset>
-
- <path id="jbws-ant.path">
- <pathelement location="${jboss.client}/jbossws-common-tools.jar" />
- <fileset dir="${jboss.home}">
- <include name="modules/**/jbossws-common-tools*.jar"/>
- </fileset>
- </path>
- <taskdef name="pathFixer" classname="org.jboss.ws.tools.ant.FixPathTask" classpathref="jbws-ant.path"/>
- <taskdef name="eclipseClasspathGenerator" classname="org.jboss.ws.tools.ant.EclipseClasspathTask" classpathref="jbws-ant.path"/>
- <taskdef name="eclipseProjectGenerator" classname="org.jboss.ws.tools.ant.EclipseProjectTask" classpathref="jbws-ant.path"/>
- <taskdef name="pathWriter" classname="org.jboss.ws.tools.ant.PathWriterTask" classpathref="jbws-ant.path"/>
-
- </target>
-
- <target name="setup-new-project" depends="init-project-properties" description="Prompt for settings and setup configuration for a new user project">
- <property file="./user-project.properties" prefix="old" />
-
- <echo message="-------------------------------------------------"/>
- <echo message=" Welcome to the JBossWS user project generator"/>
- <echo message="-------------------------------------------------"/>
- <echo message=""/>
-
- <property name="old.workspace.home" value="C:/Projects"/>
- <input addproperty="workspace.home.new"
- message="Enter your Java project workspace (the directory that contains your projects) "
- defaultvalue="${old.workspace.home}"/>
- <pathFixer property="workspace.home.new" />
-
- <property name="old.project.name" value="myproject"/>
- <input addproperty="project.name.new"
- message="Enter the project name "
- defaultvalue="${old.project.name}"/>
-
- <property name="old.project.type" value="jar"/>
- <input addproperty="project.type.new"
- message="Is this project deployed as an JAR (with EJB3 components) or a WAR (with no EJB3 support) "
- validargs="jar,war"
- defaultvalue="${old.project.type}"/>
-
- <delete file="user-project.properties"/>
- <propertyfile file="user-project.properties" comment="Generated by JBossWS user project setup">
- <entry key="workspace.home" value="${workspace.home.new}"/>
- <entry key="project.name" value="${project.name.new}"/>
- <entry key="project.type" value="${project.type.new}"/>
- <entry key="project.jboss.home" value="${jboss.home}"/>
- </propertyfile>
-
- <echo message=""/>
- <echo message="Your project settings have been saved in file 'user-project.properties'."/>
- <echo message="Please type 'ant create-project' to create the new project."/>
- </target>
-
- <target name="create-project" depends="validate-settings, configure-project" description="Create a new user project">
- <echo message="A basic webservice project named '${project.name}' has been created in the ${workspace.home} directory."/>
- <echo message="It includes a simple Ant build file and references the required libraries."/>
- <echo message="Please refer to http://community.jboss.org/wiki/JBossWS for the authoritative documentation."/>
- <echo message=""/>
- <echo message="If you are an Eclipse user, import the project into Eclipse: right click in "/>
- <echo message="'Package Explorer -> Import...' and select 'General -> Existing Projects into Workspace'."/>
- <echo message="Then click on 'Next' and set the root directory browsing to your workspace directory."/>
- </target>
-
- <target name="validate-settings" depends="init-project-properties">
- <fail message="No project name specified (run 'ant setup-new-project' first)">
- <condition>
- <or>
- <not><isset property="project.name"/></not>
- <equals arg1="${project.name}" arg2=""/>
- </or>
- </condition>
- </fail>
- <fail message="No project workspace specified (run 'ant setup-new-project' first)">
- <condition>
- <or>
- <not><isset property="workspace.home"/></not>
- <equals arg1="${workspace.home}" arg2=""/>
- </or>
- </condition>
- </fail>
- </target>
-
- <target name="configure-project">
- <mkdir dir="${project.home}/src/main/java"/>
- <mkdir dir="${project.home}/src/main/resources"/>
- <copy tofile="${project.home}/build.xml" file="${basedir}/build/user-project-build.xml">
- <filterset refid="project"/>
- </copy>
- <copy tofile="${project.home}/build.properties" file="${basedir}/user-project.properties"/>
- <path id="project.classpath">
- <fileset dir="${jboss.home}/modules/javax/xml/bind/api/main/">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/com/sun/xml/bind/main/">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/ws">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/jws/api/main/">
- <include name="*.jar"/>
- </fileset>
- <path refid="integration.target.javac.classpath" />
- </path>
- <eclipseClasspathGenerator pathId="project.classpath" outputFile="${project.home}/.classpath" srcPath="src/main/java" srcOutput="bin/main" />
- <eclipseProjectGenerator projectName="${project.name}" outputFile="${project.home}/.project" />
- <pathWriter pathId="project.classpath" outputFile="${project.home}/libraries.xml" variables="project.jboss.home" />
- </target>
-
- <target name="delete-project" depends="validate-settings" description="Delete the configured user project">
- <echo message="Deleting the entire project in ${project.home}" />
- <delete dir="${project.home}" />
- </target>
-
- <target name="settings" depends="init-project-properties" description="Print the current project settings">
- <echo message="Java project workspace: ${workspace.home}"/>
- <echo message="JBoss home: ${project.jboss.home}"/>
- <echo message="JBoss conf: ${project.jboss.conf}"/>
- <echo message="Project name: ${project.name}"/>
- <echo message="Project type: ${project.type}"/>
- </target>
-
-</project>
Modified: stack/native/trunk/modules/dist/src/main/distro/build.xml
===================================================================
--- stack/native/trunk/modules/dist/src/main/distro/build.xml 2012-03-16 11:06:18 UTC (rev 15973)
+++ stack/native/trunk/modules/dist/src/main/distro/build.xml 2012-03-16 11:07:10 UTC (rev 15974)
@@ -47,7 +47,6 @@
<import file="${build.dir}/build-deploy.xml"/>
<import file="${build.dir}/jbossws-deploy-macros.xml"/>
<import file="${tests.dir}/ant-import/build-testsuite.xml"/>
- <import file="${build.dir}/build-project-gen.xml"/>
<!-- ================================================================== -->
<!-- Initialization -->
Deleted: stack/native/trunk/modules/dist/src/main/distro/user-project-build.xml
===================================================================
--- stack/native/trunk/modules/dist/src/main/distro/user-project-build.xml 2012-03-16 11:06:18 UTC (rev 15973)
+++ stack/native/trunk/modules/dist/src/main/distro/user-project-build.xml 2012-03-16 11:07:10 UTC (rev 15974)
@@ -1,74 +0,0 @@
-<?xml version="1.0"?>
-<project name="@projectName@" default="deploy" basedir="." >
-
- <property file="${basedir}/build.properties" />
- <import file="libraries.xml" />
-
- <!-- set global properties for this build -->
- <property name="project.name" value="@projectName@" />
- <property name="dist.dir" value="dist" />
- <condition property="deploy.dir" value="${project.jboss.home}/server/${project.jboss.conf}/deploy">
- <available file="${project.jboss.home}/server" type="dir"/>
- </condition>
- <condition property="deploy.dir" value="${project.jboss.home}/${project.jboss.conf}/deployments">
- <available file="${project.jboss.home}/${project.jboss.conf}" type="dir"/>
- </condition>
- <property name="output.dir" value="output" />
- <property name="src.main.dir" value="src/main/java" />
- <property name="resources.main.dir" value="src/main/resources" />
- <property name="classes.main.dir" value="classes/main/java" />
- <property name="javac.debug" value="true" />
- <property name="javac.deprecation" value="false" />
-
- <condition property="project.war" value="true">
- <equals arg1="${project.type}" arg2="war"/>
- </condition>
-
- <target name="clean">
- <delete dir="${output.dir}" />
- <delete dir="${dist.dir}" />
- </target>
-
- <target name="init">
- <mkdir dir="${output.dir}" />
- <mkdir dir="${dist.dir}" />
- </target>
-
- <target name="compile" depends="init" description="Compile the Java source code" unless="eclipse.running">
- <tstamp/>
- <javac destdir="${output.dir}" classpathref="project.classpath" debug="${javac.debug}" deprecation="${javac.deprecation}" nowarn="on">
- <src path="${src.main.dir}" />
- </javac>
- </target>
-
- <target name="copyclasses" depends="init" description="Copy the classes that were compiled by Eclipse" if="eclipse.running">
- <copy todir="${output.dir}">
- <fileset dir="${classes/main}">
- <include name="**/*.class"/>
- </fileset>
- </copy>
- </target>
-
- <target name="dist" depends="clean,compile,copyclasses" description="Create the application distribution archive">
- <fail unless="project.type">project.type not set</fail>
- <jar jarfile="${dist.dir}/${project.name}.${project.type}">
- <fileset dir="${output.dir}" />
- <fileset dir="${resources.main.dir}">
- <include name="META-INF/**"/>
- <include name="WEB-INF/**" if="project.war" />
- </fileset>
- </jar>
- </target>
-
- <target name="deploy" depends="dist" description="Deploy to JBoss AS">
- <fail unless="project.jboss.home">project.jboss.home not set</fail>
- <copy todir="${deploy.dir}" file="${dist.dir}/${project.name}.${project.type}" />
- </target>
-
- <target name="undeploy" description="Undeploy from JBoss AS">
- <fail unless="project.jboss.home">project.jboss.home not set</fail>
- <fail unless="project.jboss.conf">project.jboss.conf not set</fail>
- <delete file="${deploy.dir}/${project.name}.${project.type}" />
- </target>
-
-</project>
Modified: stack/native/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml
===================================================================
--- stack/native/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml 2012-03-16 11:06:18 UTC (rev 15973)
+++ stack/native/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml 2012-03-16 11:07:10 UTC (rev 15974)
@@ -31,8 +31,6 @@
<includes>
<include>build-deploy.xml</include>
<include>build-setup.xml</include>
- <include>build-project-gen.xml</include>
- <include>user-project-build.xml</include>
</includes>
</fileSet>
<fileSet>
@@ -106,13 +104,11 @@
<include>java/org/jboss/test/ws/jaxws/smoke/**</include>
<include>java/org/jboss/test/ws/appclient/**</include>
<include>java/org/jboss/test/ws/management/**</include>
- <include>java/org/jboss/test/ws/projectGenerator/**</include>
<include>java/org/jboss/test/ws/saaj/**</include>
<include>resources/jaxrpc/samples/**</include>
<include>resources/jaxws/samples/**</include>
<include>resources/jaxws/smoke/**</include>
<include>resources/management/**</include>
- <include>resources/projectGenerator/**</include>
<include>resources/saaj/**</include>
</includes>
</unpackOptions>
12 years, 9 months
JBossWS SVN: r15973 - in stack/cxf/trunk/modules/dist: src/main/distro and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 07:06:18 -0400 (Fri, 16 Mar 2012)
New Revision: 15973
Removed:
stack/cxf/trunk/modules/dist/src/main/distro/build-project-gen.xml
stack/cxf/trunk/modules/dist/src/main/distro/user-project-build.xml
Modified:
stack/cxf/trunk/modules/dist/pom.xml
stack/cxf/trunk/modules/dist/src/main/distro/build.xml
stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml
Log:
[JBWS-3461] removing project generator
Modified: stack/cxf/trunk/modules/dist/pom.xml
===================================================================
--- stack/cxf/trunk/modules/dist/pom.xml 2012-03-16 10:31:48 UTC (rev 15972)
+++ stack/cxf/trunk/modules/dist/pom.xml 2012-03-16 11:06:18 UTC (rev 15973)
@@ -1,7 +1,7 @@
<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>
- <name>JBoss Web Services - Stack CXF Distrubiton</name>
+ <name>JBoss Web Services - Stack CXF Distribution</name>
<artifactId>jbossws-cxf-dist</artifactId>
<packaging>pom</packaging>
<version>4.1.0-SNAPSHOT</version>
Deleted: stack/cxf/trunk/modules/dist/src/main/distro/build-project-gen.xml
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/distro/build-project-gen.xml 2012-03-16 10:31:48 UTC (rev 15972)
+++ stack/cxf/trunk/modules/dist/src/main/distro/build-project-gen.xml 2012-03-16 11:06:18 UTC (rev 15973)
@@ -1,157 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ JBoss, Home of Professional Open Source.
- ~ Copyright 2011, Red Hat, Inc., and individual contributors
- ~ as indicated by the @author tags. See the copyright.txt file in the
- ~ distribution for a full listing of individual contributors.
- ~
- ~ This is free software; you can redistribute it and/or modify it
- ~ under the terms of the GNU Lesser General Public License as
- ~ published by the Free Software Foundation; either version 2.1 of
- ~ the License, or (at your option) any later version.
- ~
- ~ This software is distributed in the hope that it will be useful,
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details.
- ~
- ~ You should have received a copy of the GNU Lesser General Public
- ~ License along with this software; if not, write to the Free
- ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- -->
-
-<project>
-
- <target name="init-project-properties" depends="tests-init">
- <fail message="Did you copy the ant.properties.example to ant.properties?" unless="jboss.home"/>
- <property file="./user-project.properties" />
- <property name="project.home" value="${workspace.home}/${project.name}"/>
-
- <filterset id="project">
- <filter token="projectName" value="${project.name}" />
- <filter token="jbossHome" value="${project.jboss.home}" />
- </filterset>
-
- <path id="jbws-ant.path">
- <pathelement location="${thirdparty.dir}/jbossws-common-tools.jar" />
- </path>
- <taskdef name="pathFixer" classname="org.jboss.ws.tools.ant.FixPathTask" classpathref="jbws-ant.path"/>
- <taskdef name="eclipseClasspathGenerator" classname="org.jboss.ws.tools.ant.EclipseClasspathTask" classpathref="jbws-ant.path"/>
- <taskdef name="eclipseProjectGenerator" classname="org.jboss.ws.tools.ant.EclipseProjectTask" classpathref="jbws-ant.path"/>
- <taskdef name="pathWriter" classname="org.jboss.ws.tools.ant.PathWriterTask" classpathref="jbws-ant.path"/>
-
- </target>
-
- <target name="setup-new-project" depends="init-project-properties" description="Prompt for settings and setup configuration for a new user project">
- <property file="./user-project.properties" prefix="old" />
-
- <echo message="-------------------------------------------------"/>
- <echo message=" Welcome to the JBossWS user project generator"/>
- <echo message="-------------------------------------------------"/>
- <echo message=""/>
-
- <property name="old.workspace.home" value="C:/Projects"/>
- <input addproperty="workspace.home.new"
- message="Enter your Java project workspace (the directory that contains your projects) "
- defaultvalue="${old.workspace.home}"/>
- <pathFixer property="workspace.home.new" />
-
- <property name="old.project.name" value="myproject"/>
- <input addproperty="project.name.new"
- message="Enter the project name "
- defaultvalue="${old.project.name}"/>
-
- <property name="old.project.type" value="jar"/>
- <input addproperty="project.type.new"
- message="Is this project deployed as an JAR (with EJB3 components) or a WAR (with no EJB3 support) "
- validargs="jar,war"
- defaultvalue="${old.project.type}"/>
-
- <delete file="user-project.properties"/>
- <propertyfile file="user-project.properties" comment="Generated by JBossWS user project setup">
- <entry key="workspace.home" value="${workspace.home.new}"/>
- <entry key="project.name" value="${project.name.new}"/>
- <entry key="project.type" value="${project.type.new}"/>
- <entry key="project.jboss.home" value="${jboss.home}"/>
- </propertyfile>
-
- <echo message=""/>
- <echo message="Your project settings have been saved in file 'user-project.properties'."/>
- <echo message="Please type 'ant create-project' to create the new project."/>
- </target>
-
- <target name="create-project" depends="validate-settings, configure-project" description="Create a new user project">
- <echo message="A basic webservice project named '${project.name}' has been created in the ${workspace.home} directory."/>
- <echo message="It includes a simple Ant build file and references the required libraries."/>
- <echo message="Please refer to http://community.jboss.org/wiki/JBossWS for the authoritative documentation."/>
- <echo message=""/>
- <echo message="If you are an Eclipse user, import the project into Eclipse: right click in "/>
- <echo message="'Package Explorer -> Import...' and select 'General -> Existing Projects into Workspace'."/>
- <echo message="Then click on 'Next' and set the root directory browsing to your workspace directory."/>
- </target>
-
- <target name="validate-settings" depends="init-project-properties">
- <fail message="No project name specified (run 'ant setup-new-project' first)">
- <condition>
- <or>
- <not><isset property="project.name"/></not>
- <equals arg1="${project.name}" arg2=""/>
- </or>
- </condition>
- </fail>
- <fail message="No project workspace specified (run 'ant setup-new-project' first)">
- <condition>
- <or>
- <not><isset property="workspace.home"/></not>
- <equals arg1="${workspace.home}" arg2=""/>
- </or>
- </condition>
- </fail>
- </target>
-
- <target name="configure-project">
- <mkdir dir="${project.home}/src/main/java"/>
- <mkdir dir="${project.home}/src/main/resources"/>
- <copy tofile="${project.home}/build.xml" file="${basedir}/build/user-project-build.xml">
- <filterset refid="project"/>
- </copy>
- <copy tofile="${project.home}/build.properties" file="${basedir}/user-project.properties"/>
- <path id="project.classpath">
- <fileset dir="${jboss.home}/modules/org/apache/cxf/main/">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/xml/bind/api/main/">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/com/sun/xml/bind/main/">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/ws">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/jws/api/main/">
- <include name="*.jar"/>
- </fileset>
- <path refid="integration.target.javac.classpath" />
- </path>
- <eclipseClasspathGenerator pathId="project.classpath" outputFile="${project.home}/.classpath" srcPath="src/main/java" srcOutput="bin/main" />
- <eclipseProjectGenerator projectName="${project.name}" outputFile="${project.home}/.project" />
- <pathWriter pathId="project.classpath" outputFile="${project.home}/libraries.xml" variables="project.jboss.home" />
- </target>
-
- <target name="delete-project" depends="validate-settings" description="Delete the configured user project">
- <echo message="Deleting the entire project in ${project.home}" />
- <delete dir="${project.home}" />
- </target>
-
- <target name="settings" depends="init-project-properties" description="Print the current project settings">
- <echo message="Java project workspace: ${workspace.home}"/>
- <echo message="JBoss home: ${project.jboss.home}"/>
- <echo message="JBoss conf: ${project.jboss.conf}"/>
- <echo message="Project name: ${project.name}"/>
- <echo message="Project type: ${project.type}"/>
- </target>
-
-</project>
Modified: stack/cxf/trunk/modules/dist/src/main/distro/build.xml
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/distro/build.xml 2012-03-16 10:31:48 UTC (rev 15972)
+++ stack/cxf/trunk/modules/dist/src/main/distro/build.xml 2012-03-16 11:06:18 UTC (rev 15973)
@@ -47,7 +47,6 @@
<import file="${build.dir}/build-deploy.xml"/>
<import file="${build.dir}/jbossws-deploy-macros.xml"/>
<import file="${tests.dir}/ant-import/build-testsuite.xml"/>
- <import file="${build.dir}/build-project-gen.xml"/>
<!-- ================================================================== -->
<!-- Initialization -->
Deleted: stack/cxf/trunk/modules/dist/src/main/distro/user-project-build.xml
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/distro/user-project-build.xml 2012-03-16 10:31:48 UTC (rev 15972)
+++ stack/cxf/trunk/modules/dist/src/main/distro/user-project-build.xml 2012-03-16 11:06:18 UTC (rev 15973)
@@ -1,86 +0,0 @@
-<?xml version="1.0"?>
-<project name="@projectName@" default="deploy" basedir="." >
-
- <property file="${basedir}/build.properties" />
- <import file="libraries.xml" />
-
- <!-- set global properties for this build -->
- <property name="project.name" value="@projectName@" />
- <property name="dist.dir" value="dist" />
-
- <condition property="deploy.dir" value="${project.jboss.home}/server/${project.jboss.conf}/deploy">
- <available file="${project.jboss.home}/server" type="dir"/>
- </condition>
- <condition property="deploy.dir" value="${project.jboss.home}/${project.jboss.conf}/deployments">
- <available file="${project.jboss.home}/${project.jboss.conf}" type="dir"/>
- </condition>
-
- <property name="output.dir" value="output" />
- <property name="src.main.dir" value="src/main/java" />
- <property name="resources.main.dir" value="src/main/resources" />
- <property name="classes.main.dir" value="classes/main/java" />
- <property name="javac.debug" value="true" />
- <property name="javac.deprecation" value="false" />
-
- <condition property="project.war" value="true">
- <equals arg1="${project.type}" arg2="war"/>
- </condition>
-
- <target name="clean">
- <delete dir="${output.dir}" />
- <delete dir="${dist.dir}" />
- </target>
-
- <target name="init">
- <mkdir dir="${output.dir}" />
- <mkdir dir="${dist.dir}" />
- </target>
-
- <target name="compile" depends="init" description="Compile the Java source code" unless="eclipse.running">
- <tstamp/>
- <javac destdir="${output.dir}" classpathref="project.classpath" debug="${javac.debug}" deprecation="${javac.deprecation}" nowarn="on">
- <src path="${src.main.dir}" />
- </javac>
- </target>
-
- <target name="copyclasses" depends="init" description="Copy the classes that were compiled by Eclipse" if="eclipse.running">
- <copy todir="${output.dir}">
- <fileset dir="${classes/main}">
- <include name="**/*.class"/>
- </fileset>
- </copy>
- </target>
-
- <target name="dist" depends="clean,compile,copyclasses" description="Create the application distribution archive">
- <fail unless="project.type">project.type not set</fail>
- <jar jarfile="${dist.dir}/${project.name}.${project.type}">
- <fileset dir="${output.dir}" />
- <fileset dir="${resources.main.dir}">
- <include name="META-INF/**"/>
- <include name="WEB-INF/**" if="project.war" />
- </fileset>
- </jar>
- </target>
-
- <target name="deploy" depends="dist" description="Deploy to JBoss AS">
- <fail unless="project.jboss.home">project.jboss.home not set</fail>
- <delete quiet="true">
- <fileset dir="${deploy.dir}">
- <include name="${project.name}.${project.type}.undeployed"/>
- </fileset>
- </delete>
- <copy todir="${deploy.dir}" file="${dist.dir}/${project.name}.${project.type}" />
- </target>
-
- <target name="undeploy" description="Undeploy from JBoss AS">
- <fail unless="project.jboss.home">project.jboss.home not set</fail>
- <fail unless="project.jboss.conf">project.jboss.conf not set</fail>
- <fail unless="project.name">project.name not set</fail>
- <delete>
- <fileset dir="${deploy.dir}">
- <include name="${project.name}.${project.type}*"/>
- </fileset>
- </delete>
- </target>
-
-</project>
Modified: stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml 2012-03-16 10:31:48 UTC (rev 15972)
+++ stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml 2012-03-16 11:06:18 UTC (rev 15973)
@@ -31,8 +31,6 @@
<includes>
<include>build-deploy.xml</include>
<include>build-setup.xml</include>
- <include>build-project-gen.xml</include>
- <include>user-project-build.xml</include>
</includes>
</fileSet>
<fileSet>
@@ -122,13 +120,11 @@
<include>java/org/jboss/test/ws/jaxws/smoke/**</include>
<include>java/org/jboss/test/ws/appclient/**</include>
<include>java/org/jboss/test/ws/management/**</include>
- <include>java/org/jboss/test/ws/projectGenerator/**</include>
<include>java/org/jboss/test/ws/saaj/**</include>
<include>resources/jaxrpc/samples/**</include>
<include>resources/jaxws/samples/**</include>
<include>resources/jaxws/smoke/**</include>
<include>resources/management/**</include>
- <include>resources/projectGenerator/**</include>
<include>resources/saaj/**</include>
</includes>
</unpackOptions>
12 years, 9 months
JBossWS SVN: r15972 - in stack/cxf/branches/jbossws-cxf-4.0.x: modules/addons/transports/http/httpserver and 4 other directories.
by jbossws-commits@lists.jboss.org
Author: ropalka
Date: 2012-03-16 06:31:48 -0400 (Fri, 16 Mar 2012)
New Revision: 15972
Modified:
stack/cxf/branches/jbossws-cxf-4.0.x/
stack/cxf/branches/jbossws-cxf-4.0.x/modules/addons/transports/http/httpserver/pom.xml
stack/cxf/branches/jbossws-cxf-4.0.x/modules/client/pom.xml
stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/cxf-tests/pom.xml
stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/pom.xml
stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/shared-tests/pom.xml
Log:
Merged revisions 15967 via svnmerge from
https://svn.jboss.org/repos/jbossws/stack/cxf/trunk
.......
r15967 | alessio.soldano(a)jboss.com | 2012-03-16 11:02:12 +0100 (Fri, 16 Mar 2012) | 2 lines
Minor cleanup / sort of dependencies version
.......
Property changes on: stack/cxf/branches/jbossws-cxf-4.0.x
___________________________________________________________________
Modified: svnmerge-integrated
- https://svn.jboss.org/repos/jbossws/stack/cxf/trunk:1-15635,15658,15668,1...
+ https://svn.jboss.org/repos/jbossws/stack/cxf/trunk:1-15635,15658,15668,1...
Modified: svn:mergeinfo
- /stack/cxf/branches/asoldano:14032-14050,14068
/stack/cxf/trunk:15658,15668,15674-15675,15682,15695-15697,15708,15711,15713,15719,15723-15730,15738,15743,15748,15750-15751,15754-15757,15765-15766,15768,15773,15780-15781,15784,15794,15806-15808,15824,15835,15837-15857,15859,15866,15879-15881,15886-15889,15896,15900-15920,15936,15965
+ /stack/cxf/branches/asoldano:14032-14050,14068
/stack/cxf/trunk:15658,15668,15674-15675,15682,15695-15697,15708,15711,15713,15719,15723-15730,15738,15743,15748,15750-15751,15754-15757,15765-15766,15768,15773,15780-15781,15784,15794,15806-15808,15824,15835,15837-15857,15859,15866,15879-15881,15886-15889,15896,15900-15920,15936,15965,15967
Modified: stack/cxf/branches/jbossws-cxf-4.0.x/modules/addons/transports/http/httpserver/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-4.0.x/modules/addons/transports/http/httpserver/pom.xml 2012-03-16 10:25:27 UTC (rev 15971)
+++ stack/cxf/branches/jbossws-cxf-4.0.x/modules/addons/transports/http/httpserver/pom.xml 2012-03-16 10:31:48 UTC (rev 15972)
@@ -86,7 +86,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
Modified: stack/cxf/branches/jbossws-cxf-4.0.x/modules/client/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-4.0.x/modules/client/pom.xml 2012-03-16 10:25:27 UTC (rev 15971)
+++ stack/cxf/branches/jbossws-cxf-4.0.x/modules/client/pom.xml 2012-03-16 10:31:48 UTC (rev 15972)
@@ -230,7 +230,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Modified: stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/cxf-tests/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/cxf-tests/pom.xml 2012-03-16 10:25:27 UTC (rev 15971)
+++ stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/cxf-tests/pom.xml 2012-03-16 10:31:48 UTC (rev 15972)
@@ -34,7 +34,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
Modified: stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/pom.xml 2012-03-16 10:25:27 UTC (rev 15971)
+++ stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/pom.xml 2012-03-16 10:31:48 UTC (rev 15972)
@@ -24,10 +24,13 @@
<test.classes.directory>${project.build.directory}/test-classes</test.classes.directory>
<test.resources.directory>${project.build.directory}/test-resources</test.resources.directory>
<wsdl.publish.location>${project.build.directory}/wsdl-publish</wsdl.publish.location>
+ <log4j.output.dir>${project.build.directory}</log4j.output.dir>
+ <appclient.output.dir>${project.build.directory}/appclient-logs</appclient.output.dir>
+
<org.littleshoot.littleproxy.version>0.4</org.littleshoot.littleproxy.version>
<org.slf4j.version>1.6.1</org.slf4j.version>
- <log4j.output.dir>${project.build.directory}</log4j.output.dir>
- <appclient.output.dir>${project.build.directory}/appclient-logs</appclient.output.dir>
+ <gnu.getopt.version>1.0.13</gnu.getopt.version>
+ <log4j.version>1.2.14</log4j.version>
</properties>
<!-- Modules -->
@@ -53,7 +56,7 @@
<dependency>
<groupId>gnu-getopt</groupId>
<artifactId>getopt</artifactId>
- <version>1.0.13</version>
+ <version>${gnu.getopt.version}</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -101,7 +104,7 @@
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
- <version>1.2.14</version>
+ <version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
Modified: stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/shared-tests/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/shared-tests/pom.xml 2012-03-16 10:25:27 UTC (rev 15971)
+++ stack/cxf/branches/jbossws-cxf-4.0.x/modules/testsuite/shared-tests/pom.xml 2012-03-16 10:31:48 UTC (rev 15972)
@@ -24,7 +24,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
12 years, 9 months