quarta-feira, 27 de junho de 2012

Iniciando o TomCat com Ant

<project name="GPadrao" default="create-war" basedir=".">
 <property name="app.name" value="GrupoPadrao"/>
 <property name="tomcat.home" value="C:/tomcat/apache-tomcat-6.0.35"/>
 <property name="deploy.home" value="${tomcat.home}/webapps"/>
 <property name="src.dir" value="src" />
 <property name="workspace" value="${basedir}/.." />
 <property name="project.name" value="GPadrao" />
 <property name="classes.dir" value="www/WEB-INF/classes" />
 <property name="lib.dir" location="www/WEB-INF/lib" />
 <property name="jars.dir" location="dist" />
 <path id="build.classpath">
  <fileset dir="${lib.dir}">
   <include name="**/*.jar" />
  </fileset>
 </path>
 <target name="toReady">
  <mkdir dir="${src.dir}"/>
  <mkdir dir="${classes.dir}"/>
  <mkdir dir="${jars.dir}"/>
 </target>
 <target name="build" depends="toReady">
  <javac srcdir="${src.dir}" destdir="${classes.dir}">
   <classpath refid="build.classpath">
   </classpath>
  </javac>
 </target>
 <target name="package" depends="build">
  <war destfile="${jars.dir}/${app.name}.war" webxml="www/WEB-INF/web.xml">
   <classes dir="${classes.dir}">
   </classes>
   <fileset dir="www">
   </fileset>
  </war>
 </target>
 <target name="deploy" depends="package">
  <copy file="${jars.dir}/${app.name}.war" tofile="${deploy.home}/${app.name}.war">
  </copy>
  <antcall target="clean">
  </antcall>
 </target>
 <target name="clean">
  <delete dir="${jars.dir}">
  </delete>
 </target>
 <target name="undeploy">
  <delete file="${deploy.home}/${app.name}.war"/>
 </target>
 <target name="create-war" depends="package">
 </target>
 <target name="tomcat-start">
  <java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
   <jvmarg value="-Dcatalina.home=${tomcat.home}"/>
  </java>
 </target>

 <target name="tomcat-stop">
  <java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
   <jvmarg value="-Dcatalina.home=${tomcat.home}"/>
   <arg line="stop"/>
  </java>
 </target>
 <target name="Full">
  <antcall target="deploy">
  </antcall>
  <antcall target="clean">
  </antcall>
  <antcall target="tomcat-stop">
  </antcall>
  <antcall target="browser">
  </antcall>
  <antcall target="tomcat-start">
  </antcall>

 </target>
 <target name="browser">
  <exec executable="C:/Arquivos de programas/Internet Explorer/iexplore.exe">
   <arg value="http://localhost:8080/${app.name}"/>
  </exec>
 </target>




 <target name="war">
  <jar destfile="ROOT.war">
   <fileset dir="www">
    <include name="**" />
   </fileset>
  </jar>
 </target>

 <target name="create-schedule">
  <jar destfile="GPadrao_ExtracaoContatos.jar">
   <manifest>
    <attribute name="Main-class" value="com.mdsb.gpadrao.contato.business.exportacoes.ExportaContatos" />
   </manifest>
   <fileset dir="${classes.dir}">
    <include name="**/*.*" />
    <include name="**/META_INF" />
   </fileset>
  </jar>
  <delete dir="${basedir}/extacao_contato/lib"/>
  <copydir dest="${basedir}/extacao_contato/lib" src="${basedir}/www/WEB-INF/lib">
  </copydir>
  <move file="${basedir}/GPadrao_ExtracaoContatos.jar" todir="${basedir}/extacao_contato/" />
  <copy file="${basedir}/connectionpool.xml" todir="${basedir}/extacao_contato" />
  <copy file="${basedir}/exporta_contato.bat" todir="${basedir}/extacao_contato" />

 </target>

</project>

segunda-feira, 25 de junho de 2012

cass-path webservices com AXIS2

Class-path webservice com AXIS2
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
 <classpathentry kind="src" path="src"/>
 <classpathentry including="activation.jar|ajaxtags-1.1.5.jar|antlr-2.7.6.jar|asm.jar|bonecp-0.7.1.RELEASE.jar|bonecp-provider-0.7.1-rc2.jar|cglib-2.1.3.jar|commons-beanutils.jar|commons-collections-3.2.jar|commons-fileupload-1.2.1-javadoc.jar|commons-fileupload-1.2.1-sources.jar|commons-fileupload-1.2.1.jar|commons-httpclient-3.0.1.jar|commons-io-1.4-javadoc.jar|commons-io-1.4-sources.jar|commons-io-1.4.jar|commons-lang-2.2.jar|commons-logging-1.0.4.jar|commons-logging-api.jar|commons-logging.jar|cos.jar|displaytag-1.1.jar|dom4j-1.6.1.jar|ehcache-1.2.3.jar|ejb3-persistence.jar|framework.jar|gson-1.7.1.jar|guava-11.0.1.jar|hibernate-annotations.jar|hibernate-commons-annotations.jar|hibernate-entitymanager.jar|hibernate3.jar|imap.jar|javassist.jar|jboss-archive-browsing.jar|jcommon-1.0.13.jar|jfreechart-1.0.10-experimental.jar|jfreechart-1.0.10.jar|jsdk-24.jar|jsdk23.jar|jstl.jar|jta.jar|jtds-1.2.jar|log4j-1.2.14.jar|mail.jar|mailapi.jar|mssqlserver.jar|poi-3.6-20091214.jar|poi-ooxml-3.6-20091214.jar|seguranca.jar|segurancaBI.jar|slf4j-api-1.6.4.jar|slf4j-log4j12-1.6.4.jar|smtp.jar|standard.jar|tbutils-wcf.jar|uploadbean.jar|wcf.jar|webutil.jar" kind="src" path="lib"/>
 <classpathentry kind="src" path="Test"/>
 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0"/>
 <classpathentry kind="lib" path="lib/bonecp-0.7.1.RELEASE.jar"/>
 <classpathentry kind="lib" path="lib/bonecp-provider-0.7.1-rc2.jar"/>
 <classpathentry kind="lib" path="lib/cglib-2.1.3.jar"/>
 <classpathentry kind="lib" path="lib/commons-beanutils.jar"/>
 <classpathentry kind="lib" path="lib/commons-io-1.4.jar"/>
 <classpathentry kind="lib" path="lib/commons-lang-2.2.jar"/>
 <classpathentry kind="lib" path="lib/ehcache-1.2.3.jar"/>
 <classpathentry kind="lib" path="lib/ejb3-persistence.jar"/>
 <classpathentry kind="lib" path="lib/framework.jar"/>
 <classpathentry kind="lib" path="lib/hibernate-annotations.jar"/>
 <classpathentry kind="lib" path="lib/hibernate-commons-annotations.jar"/>
 <classpathentry kind="lib" path="lib/hibernate-entitymanager.jar"/>
 <classpathentry kind="lib" path="lib/hibernate3.jar"/>
 <classpathentry kind="lib" path="lib/jta.jar"/>
 <classpathentry kind="lib" path="lib/log4j-1.2.14.jar"/>
 <classpathentry kind="lib" path="lib/webutil.jar"/>
 <classpathentry kind="lib" path="lib/ojdbc14.jar"/>
 <classpathentry kind="lib" path="lib/dom4j-1.6.1.jar"/>
 <classpathentry kind="lib" path="lib/asm.jar"/>
 <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
 <classpathentry kind="lib" path="/SolicitacoesNissan/WebRoot/WEB-INF/lib/commons-logging-1.0.4.jar"/>
 <classpathentry kind="lib" path="/SolicitacoesNissan/WebRoot/WEB-INF/lib/commons-collections-2.1.1.jar"/>
 <classpathentry kind="output" path="classes"/>
</classpath>