----
Criar repositorio 'website'para o cliente 'elsevier' ja utilizando as configuracoes padroes de seguranca

ant admin create elsevier website

----
Gerar relatorios estatisticos para todos os repositorios do cliente 'elsevier'

ant report elsevier

----
Gerar relatorios estatisticos para todos os repositorios (pede pra confirmar, pois pode ser demorado)

ant report


----
Fazer backup do repositorio 'website' do cliente 'elsevier'

ant backup elsevier website

----
Fazer backup de todos repositorios do cliente 'elsevier'

ant backup elsevier
----
Fazer sincronizacao do repositorio 'website' do cliente 'elsevier'

ant sinchronize elsevier website

----
Fazer sincronizacao de todos repositorios do cliente 'elsevier'

ant sinchronize elsevier



	<target name="clean" description="Clean all generated files in ${build.dir}" depends="init">
		<echo message="Apagando todos os arquivos existentes no diretorio ${build.dir}" />
		<delete dir="${build.dir}" includes="**/*" includeemptydirs="true" />
	</target>

	<target name="docs.java2html" description="Create source code html files" depends="init">
		<echo message="Gerando javadoc do codigo-fonte da aplicação ${application.name} em ${docs.javadoc.source.dir}" />
		<java2html title="Java Source API" simple="no" tabsize="4" marginsize="4" header="true" footer="false" destination="${docs.javadoc.source.dir}">
			<fileset dir="${src.dir}">
				<include name="**/*.java" />
			</fileset>
			<javadoc localRef="${docs.javadoc.api.dir}" httpRef="${project.site}" />
		</java2html>
	</target>

	<target name="docs.javaApi" description="Create API html files" depends="init">
		<echo message="TODO: Gerando javadoc da API da aplicação ${application.name} em ${docs.javadoc.api.dir}" level="error"/>
		<!-- TODO -->
		<javadoc />
	</target>

	<target name="web.build" description="Build the exploded WAR application in ${web.build.dir} directory" depends="init">
		<echo message="Gerando aplicacao web no formato WAR explodido no diretorio ${web.build.dir}" />
		<mkdir dir="${web.build.dir}" />
		<copy todir="${web.build.dir}">
			<fileset dir="${resources.dir}">
				<include name="WEB-INF/**.*" />
			</fileset>
			<fileset dir="${view.dir}">
				<include name="testes/**" />
			</fileset>
		</copy>
		<mkdir dir="${web.build.dir}/WEB-INF/lib" />
		<copy todir="${web.build.dir}/WEB-INF/lib">
			<fileset dir="${lib.dir}/deploy">
				<include name="**.jar" />
			</fileset>
		</copy>
		<mkdir dir="${web.build.dir}/WEB-INF/classes" />
		<copy todir="${web.build.dir}/WEB-INF/classes">
			<fileset dir="${bin.dir}">
				<include name="**/*.class" />
				<include name="*.properties" />
			</fileset>
			<fileset dir="${resources.dir}">
				<include name="log4j.xml" />
				<include name="magoo-rules.properties" />
			</fileset>
		</copy>
	</target>

	<target name="web.reload" description="Reload web application in JSP container" depends="web.build">
		<reload url="${web.manager.url}" username="${web.manager.user}" password="${web.manager.passwd}" path="${web.contextPah}" />
	</target>