[jboss-cvs] jboss-seam-tools/src/java/org/jboss/seam/tools/exporter/wtp ...

Thomas Heute theute at jboss.com
Mon Aug 14 11:57:45 EDT 2006


  User: theute  
  Date: 06/08/14 11:57:45

  Added:       src/java/org/jboss/seam/tools/exporter/wtp    
                        WTPEjbProjectExporter.java
                        WTPEarProjectExporter.java
                        WTPWebProjectExporter.java WTPSeamExporter.java
  Log:
  Moved to hibernate Tools
  
  (ban cvs imports)
  
  Revision  Changes    Path
  1.1      date: 2006/08/14 15:57:45;  author: theute;  state: Exp;jboss-seam-tools/src/java/org/jboss/seam/tools/exporter/wtp/WTPEjbProjectExporter.java
  
  Index: WTPEjbProjectExporter.java
  ===================================================================
  /*
    * JBoss, Home of Professional Open Source
    * Copyright 2005, JBoss Inc., and individual contributors as indicated
    * by the @authors tag. See the copyright.txt in the distribution for a
    * full listing of individual contributors.
    *
    * This is free software; you can redistribute it and/or modify it
    * under the terms of the GNU Lesser General Public License as
    * published by the Free Software Foundation; either version 2.1 of
    * the License, or (at your option) any later version.
    *
    * This software is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * Lesser General Public License for more details.
    *
    * You should have received a copy of the GNU Lesser General Public
    * License along with this software; if not, write to the Free
    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
    */
  package org.jboss.seam.tools.exporter.wtp;
  
  import org.jboss.seam.tools.context.Context;
  import org.jboss.seam.tools.exporter.EjbProjectExporter;
  
  public class WTPEjbProjectExporter extends EjbProjectExporter {
  
  	public WTPEjbProjectExporter(Context context)
  	{
  		super(context);
  		init();
  	}
  	
  	public void doStart()
  	{
  		super.doStart();
  	}
  	
      public void setupContext() {
      	super.setupContext();
      }
  	
      private void init() {
      	setTemplatePrefix("ejb/");		
  	}
  
  }
  
  
  
  1.1      date: 2006/08/14 15:57:45;  author: theute;  state: Exp;jboss-seam-tools/src/java/org/jboss/seam/tools/exporter/wtp/WTPEarProjectExporter.java
  
  Index: WTPEarProjectExporter.java
  ===================================================================
  /*
    * JBoss, Home of Professional Open Source
    * Copyright 2005, JBoss Inc., and individual contributors as indicated
    * by the @authors tag. See the copyright.txt in the distribution for a
    * full listing of individual contributors.
    *
    * This is free software; you can redistribute it and/or modify it
    * under the terms of the GNU Lesser General Public License as
    * published by the Free Software Foundation; either version 2.1 of
    * the License, or (at your option) any later version.
    *
    * This software is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * Lesser General Public License for more details.
    *
    * You should have received a copy of the GNU Lesser General Public
    * License along with this software; if not, write to the Free
    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
    */
  package org.jboss.seam.tools.exporter.wtp;
  
  import org.jboss.seam.tools.context.Context;
  import org.jboss.seam.tools.exporter.EarProjectExporter;
  
  public class WTPEarProjectExporter extends EarProjectExporter {
  
  	
  	public WTPEarProjectExporter(Context context)
  	{
  		super(context);
  		init();
  	}
  	
  	public void doStart()
  	{
  		super.doStart();
  	}
  	
      private void init() {
      	setTemplatePrefix("ear/");		
  	}
  
  }
  
  
  
  1.1      date: 2006/08/14 15:57:45;  author: theute;  state: Exp;jboss-seam-tools/src/java/org/jboss/seam/tools/exporter/wtp/WTPWebProjectExporter.java
  
  Index: WTPWebProjectExporter.java
  ===================================================================
  /*
    * JBoss, Home of Professional Open Source
    * Copyright 2005, JBoss Inc., and individual contributors as indicated
    * by the @authors tag. See the copyright.txt in the distribution for a
    * full listing of individual contributors.
    *
    * This is free software; you can redistribute it and/or modify it
    * under the terms of the GNU Lesser General Public License as
    * published by the Free Software Foundation; either version 2.1 of
    * the License, or (at your option) any later version.
    *
    * This software is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * Lesser General Public License for more details.
    *
    * You should have received a copy of the GNU Lesser General Public
    * License along with this software; if not, write to the Free
    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
    */
  package org.jboss.seam.tools.exporter.wtp;
  
  import org.jboss.seam.tools.context.Context;
  import org.jboss.seam.tools.exporter.WebProjectExporter;
  
  public class WTPWebProjectExporter extends WebProjectExporter {
  
  	public WTPWebProjectExporter(Context context)
  	{
  		super(context);
  		init();
  	}
  	
  	public void doStart()
  	{
  		super.doStart();
  	}
  	
      public void setupContext() {
      	super.setupContext();
      }
  	
      private void init() {
      	setTemplatePrefix("web/");		
  	}
  
  
  }
  
  
  
  1.1      date: 2006/08/14 15:57:45;  author: theute;  state: Exp;jboss-seam-tools/src/java/org/jboss/seam/tools/exporter/wtp/WTPSeamExporter.java
  
  Index: WTPSeamExporter.java
  ===================================================================
  /*
    * JBoss, Home of Professional Open Source
    * Copyright 2005, JBoss Inc., and individual contributors as indicated
    * by the @authors tag. See the copyright.txt in the distribution for a
    * full listing of individual contributors.
    *
    * This is free software; you can redistribute it and/or modify it
    * under the terms of the GNU Lesser General Public License as
    * published by the Free Software Foundation; either version 2.1 of
    * the License, or (at your option) any later version.
    *
    * This software is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * Lesser General Public License for more details.
    *
    * You should have received a copy of the GNU Lesser General Public
    * License along with this software; if not, write to the Free
    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
    */
  package org.jboss.seam.tools.exporter.wtp;
  
  import java.io.File;
  import java.util.Iterator;
  import java.util.List;
  
  import org.jboss.seam.tools.exporter.AbstractSeamExporter;
  import org.jboss.seam.tools.exporter.EjbProjectExporter;
  import org.jboss.seam.tools.exporter.WebProjectExporter;
  
  public class WTPSeamExporter extends AbstractSeamExporter {
  
      private WTPEarProjectExporter earProjectExporter;
      private List wtpEjbProjectExporters;
      private List wtpWebProjectExporters;
      
  	public WTPSeamExporter(WTPEarProjectExporter earProjectExporter, List wtpEjbProjectExporters, List wtpWebProjectExporters)
      {
      	this.earProjectExporter = earProjectExporter;
      	this.wtpEjbProjectExporters = wtpEjbProjectExporters;
      	Iterator it = wtpEjbProjectExporters.iterator();
      	while (it.hasNext())
      	{
      		EjbProjectExporter ejbProject = (EjbProjectExporter)it.next();
      		earProjectExporter.addEjbContext(ejbProject.getEjbContext());
      		ejbProject.setEarContext(earProjectExporter.getEarContext());
      	}
      	this.wtpWebProjectExporters = wtpWebProjectExporters;
      	it = wtpWebProjectExporters.iterator();
      	while (it.hasNext())
      	{
      		WebProjectExporter webExporter = (WebProjectExporter)it.next();
      		earProjectExporter.addWebContext(webExporter.getWebContext());
      		webExporter.setEarContext(earProjectExporter.getEarContext());
      	}
      }
  	
      protected void setupContext() {
      	super.setupContext();
      }
      
      public void doStart()
      {
      	earProjectExporter.setOutputDirectory(new File(getOutputDirectory(), earProjectExporter.getEarContext().getProjectName()));
      	earProjectExporter.start();
      	Iterator it = wtpEjbProjectExporters.iterator();
      	while (it.hasNext())
      	{
      		WTPEjbProjectExporter exporter = (WTPEjbProjectExporter)it.next();
      		exporter.setOutputDirectory(new File(getOutputDirectory(), exporter.getEjbContext().getProjectName()));
      		exporter.start();
      	}
      	it = wtpWebProjectExporters.iterator();
      	while (it.hasNext())
      	{
      		WTPWebProjectExporter exporter = (WTPWebProjectExporter)it.next();
      		exporter.setOutputDirectory(new File(getOutputDirectory(), exporter.getWebContext().getProjectName()));
      		exporter.start();
      	}
      }
      
  }
  
  
  



More information about the jboss-cvs-commits mailing list