From cd6829f8b5d3b59921f2c9f1572a60b053380146 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Thu, 27 May 2004 02:34:35 +0000 Subject: [PATCH] o teach mboot about generated sources that live in target/generated-sources git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162718 13f79535-47bb-0310-9956-ffa450edef68 --- maven-mboot/src/bash/maven.functions | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/maven-mboot/src/bash/maven.functions b/maven-mboot/src/bash/maven.functions index 0496291869..09e656647f 100755 --- a/maven-mboot/src/bash/maven.functions +++ b/maven-mboot/src/bash/maven.functions @@ -219,7 +219,14 @@ buildMavenProject() if [ ! -z $sourceDirectory ] && [ -d $sourceDirectory ] then - compile "$projectDependencyClassPath" $buildDest $sourceDirectory + generatedSourceDirectory=target/generated-sources + + if [ -d $generatedSourceDirectory ] + then + generatedSources=`find $generatedSourceDirectory -name '*.java'` + fi + + compile "$projectDependencyClassPath" $buildDest $sourceDirectory $generatedSources isCommandSuccessful $? "Failed compiling classes!"