<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>WALA</artifactId>
        <groupId>com.ibm.wala</groupId>
        <version>1.5.0-SNAPSHOT</version>
    </parent>
  <artifactId>com.ibm.wala.cast</artifactId>
  <packaging>eclipse-plugin</packaging>
	<build>
		<plugins>
		  <plugin>
		    <groupId>org.codehaus.mojo</groupId>
		    <artifactId>exec-maven-plugin</artifactId>
		    <version>1.6.0</version>
		    <executions>
		      <execution>
			<phase>compile</phase>
			<configuration>
			  <executable>bash</executable>
			  <arguments>
			    <argument>${basedir}/source/c/cbuild.sh</argument>
			  </arguments>
			  <workingDirectory>${basedir}/source/c</workingDirectory>
			</configuration>
			<goals>
			  <goal>exec</goal>
			</goals>
		      </execution>
		    </executions>
 		  </plugin>
                    <plugin>
                        <artifactId>maven-dependency-plugin</artifactId>
                            <executions>
                                <execution>
                                    <goals>
                                        <goal>copy</goal>
                                    </goals>
                                    <configuration>
                                        <artifactItems>
                                          <artifactItem>
                                            <groupId>commons-io</groupId>
                                            <artifactId>commons-io</artifactId>
                                            <version>2.4</version>
                                            <type>jar</type>
                                            <overWrite>false</overWrite>
                                          </artifactItem>
                                        </artifactItems>  
                                        <outputDirectory>${basedir}/lib</outputDirectory>
                                    </configuration>
                                </execution>
                            </executions>
                    </plugin>
                </plugins>
	</build>
</project>
