topical media & game development

talk show tell print

professional-portal-09-MVCPortlet-build.xml / xml



  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE project [
      <!ENTITY build-portlets SYSTEM "file:../common-build-portlet.xml">
  ]>
  
  <project name="MVCPortlet" default="package">
  
    <!-- ================================================================== -->
    <!--               LOCAL PROPERTIES                                     -->
    <!-- ================================================================== -->
    <property name="package.name" value="MVCPortlet"/>
  
    <!-- ================================================================== -->
    <!--               INCLUDE GLOBAL XML FRAGMENT                          -->
    <!-- ================================================================== -->
    &build-portlets;
  
    <!-- ================================================================== -->
    <!--                         deploy                                     -->
    <!-- ================================================================== -->
    <target name="deploy" depends="prepare, compile, package">
      <copy todir="{portlet.deploy.dir}/{package.name}.war">
        <fileset dir="{build.dir}"/>
      </copy>
    </target>
    <!-- ================================================================== -->
    <!--               Validate                                             -->
    <!-- ================================================================== -->
    <target name="validate">
                  <java fork="yes" classname="exo.commons.utils.ValidateXmlFile" taskname="junit" failonerror="true">
                          <arg value="exo.portal.portlet.actions.config"/>
                          <arg value="{web.dir}/WEB-INF/controllers.xml"/>
        <classpath refid="portlet.build.classpath"/>
                  </java>
                  <java fork="yes" classname="exo.commons.utils.ValidateXmlFile" taskname="junit" failonerror="true">
                          <arg value="exo.portal.container.portlet"/>
                          <arg value="{web.dir}/WEB-INF/portlet.xml"/>
        <classpath refid="portlet.build.classpath"/>
                  </java>
    </target>
  
  </project>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.