提交 3e647cae 编写于 作者: K kohsuke

improved the error diagnosis. See http://www.nabble.com/No-javadoc-found-td22457649.html#a22457649

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16309 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d185470f
......@@ -1225,7 +1225,7 @@ public final class FilePath implements Serializable {
* This is useful in conjunction with {@link FormFieldValidator}.
*
* @return
* null if no error was found.
* null if no error was found. Otherwise returns a human readable error message.
* @since 1.90
* @see FormFieldValidator.WorkspaceFileMask
*/
......
......@@ -92,8 +92,8 @@ public class JavadocArchiver extends Recorder {
if (javadoc.copyRecursiveTo("**/*",target)==0) {
if(build.getResult().isBetterOrEqualTo(Result.UNSTABLE)) {
// If the build failed, don't complain that there was no javadoc.
// The build probably didn't even get to the point where it produces javadoc.
listener.error(Messages.JavadocArchiver_NoMatchFound(javadoc));
// The build probably didn't even get to the point where it produces javadoc.
listener.error(Messages.JavadocArchiver_NoMatchFound(javadoc,javadoc.validateAntFileMask("**/*"));
}
build.setResult(Result.FAILURE);
return true;
......
......@@ -63,7 +63,7 @@ Fingerprinter.Recording=Recording fingerprints
JavadocArchiver.DisplayName=Publish Javadoc
JavadocArchiver.DisplayName.Generic=Document
JavadocArchiver.DisplayName.Javadoc=Javadoc
JavadocArchiver.NoMatchFound=No javadoc found in {0}
JavadocArchiver.NoMatchFound=No javadoc found in {0}: {1}
JavadocArchiver.Publishing=Publishing Javadoc
JavadocArchiver.UnableToCopy=Unable to copy Javadoc from {0} to {1}
......
......@@ -62,7 +62,7 @@ Fingerprinter.Recording=Zeichne Fingerabr
JavadocArchiver.DisplayName=Javadoc verffentlichen
JavadocArchiver.DisplayName.Generic=Dokumentation
JavadocArchiver.DisplayName.Javadoc=Javadocs
JavadocArchiver.NoMatchFound=Keine Javadocs in {0} gefunden.
JavadocArchiver.NoMatchFound=Keine Javadocs in {0} gefunden: {1}
JavadocArchiver.Publishing=Verffentliche Javadocs
JavadocArchiver.UnableToCopy=Kann Javadocs nicht von {0} nach {1} kopieren
......
......@@ -63,7 +63,7 @@ Fingerprinter.Recording=Enregistrement des empreintes num
JavadocArchiver.DisplayName=Publier les Javadocs
JavadocArchiver.DisplayName.Generic=Documentation du code
JavadocArchiver.DisplayName.Javadoc=Javadoc
JavadocArchiver.NoMatchFound=Pas de javadoc trouvé dans {0}
JavadocArchiver.NoMatchFound=Pas de javadoc trouvé dans {0}: {1}
JavadocArchiver.Publishing=Publication des Javadocs
JavadocArchiver.UnableToCopy=Impossible de copier les Javadocs de {0} vers {1}
......
......@@ -62,7 +62,7 @@ Fingerprinter.Recording=\u30D5\u30A1\u30A4\u30EB\u6307\u7D0B\u306E\u8A18\u9332
JavadocArchiver.DisplayName=Javadoc\u306E\u4FDD\u5B58
JavadocArchiver.DisplayName.Generic=\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8
JavadocArchiver.DisplayName.Javadoc=Javadoc
JavadocArchiver.NoMatchFound={0} \u306BJavadoc\u304C\u3042\u308A\u307E\u305B\u3093
JavadocArchiver.NoMatchFound={0} \u306BJavadoc\u304C\u3042\u308A\u307E\u305B\u3093: {1}
JavadocArchiver.Publishing=Javadoc\u306E\u4FDD\u5B58
JavadocArchiver.UnableToCopy=Javadoc\u3092{0}\u304B\u3089{1}\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册