[jboss-svn-commits] JBL Code SVN: r19750 - labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Apr 29 01:58:10 EDT 2008
Author: steve.ebersole at jboss.com
Date: 2008-04-29 01:58:10 -0400 (Tue, 29 Apr 2008)
New Revision: 19750
Modified:
labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/AbstractDocBookMojo.java
Log:
MPJDOCBOOK-9 : masterTranslation w/o translations
Modified: labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/AbstractDocBookMojo.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/AbstractDocBookMojo.java 2008-04-28 20:54:02 UTC (rev 19749)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jdocbook-plugin/src/main/java/org/jboss/maven/plugins/jdocbook/AbstractDocBookMojo.java 2008-04-29 05:58:10 UTC (rev 19750)
@@ -263,15 +263,15 @@
translations = new String[0];
}
- if ( translations.length != 0 ) {
- if ( relativeMasterTranslationPath == null || "".equals( relativeMasterTranslationPath ) ) {
- // see if we have a directory named according to the master translation within the sourceDorectory...
- File test = new File( sourceDirectory, masterTranslation );
- if ( test.exists() ) {
- relativeMasterTranslationPath = masterTranslation;
- }
+
+ if ( relativeMasterTranslationPath == null || "".equals( relativeMasterTranslationPath ) ) {
+ // see if we have a directory named according to the master translation within the sourceDorectory...
+ File test = new File( sourceDirectory, masterTranslation );
+ if ( test.exists() ) {
+ relativeMasterTranslationPath = masterTranslation;
}
}
+
resolvedMasterSourceDirectory = sourceDirectory;
if ( relativeMasterTranslationPath != null && !"".equals( relativeMasterTranslationPath ) ) {
resolvedMasterSourceDirectory = new File( resolvedMasterSourceDirectory, relativeMasterTranslationPath );
More information about the jboss-svn-commits
mailing list