<project name="dist-common">
	<property name="smartgwt.root" location="../.." />
	<property name="project.tail" value="distro-source/${dist.platform}" />
	<import file="${smartgwt.root}/common.ant.xml" />

	
	<property name="project.distname" value="smartgwt-${smartgwt.version}" />
	<property name="project.staging" location="${smartgwt.build.staging}/${project.distname}" />

	<patternset id="chmod.executables">
		<include name="*Creator" />
		<include name="benchmarkViewer" />
	</patternset>

	<patternset id="chmod.not.executables">
		<exclude name="*Creator" />
		<exclude name="benchmarkViewer" />
	</patternset>

	<target name="filter" description="Filters distro files for versioning">
		<!-- These files must be filtered for versioning -->
		<mkdir dir="${project.build}" />
		<copy todir="${project.build}">
			<fileset dir="../core/src" />
			<filterset>
				<filter token="SMARTGWT_VERSION" value="${smartgwt.version}" />
			</filterset>
		</copy>
	</target>

	<target name="clean" description="Cleans this project's intermediate and output files">
		<delete dir="${project.build}" failonerror="false" />
		<delete dir="${project.staging}" failonerror="false" />
		<delete file="${project.dist}" failonerror="false" />
	</target>
</project>
