提交 170c306a 编写于 作者: K kohsuke

added a hook to detect an error earlier.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2864 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5a01e1c5
......@@ -31,7 +31,10 @@ class MavenUtil {
maven.setLogger( new EmbedderLoggerImpl(listener) );
// make sure ~/.m2 exists to avoid http://www.nabble.com/BUG-Report-tf3401736.html
new File( MavenEmbedder.userHome, ".m2" ).mkdirs();
File m2Home = new File(MavenEmbedder.userHome, ".m2");
m2Home.mkdirs();
if(!m2Home.exists())
listener.getLogger().println("Failed to create "+m2Home);
maven.start();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册