HADOOP-7502. Make generated sources IDE friendly. (Alejandro Abdelnur via llu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1153586 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luke Lu 2011-08-03 17:13:24 +00:00
parent 102b94d3a8
commit 12e09b229f
2 changed files with 11 additions and 8 deletions

View File

@ -303,6 +303,9 @@ Trunk (unreleased changes)
HADOOP-6671. Use maven for hadoop common builds. (Alejandro Abdelnur HADOOP-6671. Use maven for hadoop common builds. (Alejandro Abdelnur
via tomwhite) via tomwhite)
HADOOP-7502. Make generated sources IDE friendly.
(Alejandro Abdelnur via llu)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole

View File

@ -322,10 +322,10 @@
</goals> </goals>
<configuration> <configuration>
<target> <target>
<mkdir dir="${project.build.directory}/generated-src/main/java"/> <mkdir dir="${project.build.directory}/generated-sources/java"/>
<exec executable="sh"> <exec executable="sh">
<arg <arg
line="${basedir}/dev-support/saveVersion.sh ${project.version} ${project.build.directory}/generated-src/main/java"/> line="${basedir}/dev-support/saveVersion.sh ${project.version} ${project.build.directory}/generated-sources/java"/>
</exec> </exec>
</target> </target>
</configuration> </configuration>
@ -339,19 +339,19 @@
<configuration> <configuration>
<target> <target>
<mkdir dir="${project.build.directory}/generated-src/test/java"/> <mkdir dir="${project.build.directory}/generated-test-sources/java"/>
<taskdef name="recordcc" classname="org.apache.hadoop.record.compiler.ant.RccTask"> <taskdef name="recordcc" classname="org.apache.hadoop.record.compiler.ant.RccTask">
<classpath refid="maven.compile.classpath"/> <classpath refid="maven.compile.classpath"/>
</taskdef> </taskdef>
<recordcc destdir="${project.build.directory}/generated-src/test/java"> <recordcc destdir="${project.build.directory}/generated-test-sources/java">
<fileset dir="${basedir}/src/test/ddl" includes="**/*.jr"/> <fileset dir="${basedir}/src/test/ddl" includes="**/*.jr"/>
</recordcc> </recordcc>
<taskdef name="schema" classname="org.apache.avro.specific.SchemaTask"> <taskdef name="schema" classname="org.apache.avro.specific.SchemaTask">
<classpath refid="maven.test.classpath"/> <classpath refid="maven.test.classpath"/>
</taskdef> </taskdef>
<schema destdir="${project.build.directory}/generated-src/test/java"> <schema destdir="${project.build.directory}/generated-test-sources/java">
<fileset dir="${basedir}/src/test"> <fileset dir="${basedir}/src/test">
<include name="**/*.avsc"/> <include name="**/*.avsc"/>
</fileset> </fileset>
@ -360,7 +360,7 @@
<taskdef name="schema" classname="org.apache.avro.specific.ProtocolTask"> <taskdef name="schema" classname="org.apache.avro.specific.ProtocolTask">
<classpath refid="maven.test.classpath"/> <classpath refid="maven.test.classpath"/>
</taskdef> </taskdef>
<schema destdir="${project.build.directory}/generated-src/test/java"> <schema destdir="${project.build.directory}/generated-test-sources/java">
<fileset dir="${basedir}/src/test"> <fileset dir="${basedir}/src/test">
<include name="**/*.avpr"/> <include name="**/*.avpr"/>
</fileset> </fileset>
@ -403,7 +403,7 @@
</goals> </goals>
<configuration> <configuration>
<sources> <sources>
<source>${project.build.directory}/generated-src/main/java</source> <source>${project.build.directory}/generated-sources/java</source>
</sources> </sources>
</configuration> </configuration>
</execution> </execution>
@ -415,7 +415,7 @@
</goals> </goals>
<configuration> <configuration>
<sources> <sources>
<source>${project.build.directory}/generated-src/test/java</source> <source>${project.build.directory}/generated-test-sources/java</source>
</sources> </sources>
</configuration> </configuration>
</execution> </execution>