assembly-linux.xml 2.51 KB
<assembly
	xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
	<id>linux</id>
	<includeBaseDirectory>false</includeBaseDirectory>
	<formats>
		<format>tar.gz</format>
	</formats>
	<fileSets>
		<fileSet>
			<directory>target/generated-resources/appassembler/jsw/mycat/bin</directory>
			<outputDirectory>mycat/bin</outputDirectory>
            <fileMode>0755</fileMode>
            <includes>
				<include>mycat</include>
				<include>wrapper-linux*</include>
			</includes>
		</fileSet>
		<fileSet>
			<directory>target/generated-resources/appassembler/jsw/mycat/lib</directory>
			<outputDirectory>mycat/lib</outputDirectory>
			<includes>
				<include>*.jar</include>
				<include>libwrapper-linux*</include>
			</includes>
		</fileSet>
		<fileSet>
			<directory>target/generated-resources/appassembler/jsw/mycat/conf</directory>
			<outputDirectory>mycat/conf</outputDirectory>
			<includes>
				<include>*</include>
			</includes>
		</fileSet>
		<fileSet>
			<directory>src/main/resources</directory>
			<outputDirectory>mycat/conf</outputDirectory>
			<excludes>
				<exclude>*.dtd</exclude>
				<exclude>log4j*</exclude>
			</excludes>
		</fileSet>
        <fileSet>
            <directory>${basedir}</directory>
            <outputDirectory>mycat/</outputDirectory>
            <includes>
                <include>version.txt</include>
            </includes>
        </fileSet>
		<fileSet>
			<directory>src/main/assembly/conf</directory>
			<outputDirectory>mycat/conf</outputDirectory>
		</fileSet>
		<fileSet>
			<directory>src/main/assembly/bin</directory>
			<outputDirectory>mycat/bin</outputDirectory>
			<fileMode>0755</fileMode>
			<includes>
				<include>*.sh</include>
            </includes>
		</fileSet>
		<fileSet>
			<directory>${basedir}/logs</directory>
			<outputDirectory>mycat/logs</outputDirectory>
			<excludes>
				<exclude>**/*</exclude>
			</excludes>
		</fileSet>
        <fileSet>
            <directory>${basedir}/catlet</directory>
            <outputDirectory>mycat/catlet</outputDirectory>
            <excludes>
                <exclude>**/*</exclude>
            </excludes>
        </fileSet>
	</fileSets>

	<files>
		<file>
			<source>src/main/resources/schema_${schema.profile}.xml</source>
			<outputDirectory>mycat/conf</outputDirectory>
			<destName>schema.xml</destName>
		</file>
	</files>
</assembly>