Commit Graph
68 Commits
Author SHA1 Message Date
kohsuke 1a1d0d74d5 license header clean up
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15081 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-06 20:05:24 +00:00
kohsuke 63a8adbed2 ant throws an exception if the base dir doesn't exist.
This breaks some of the error checks in places like ArtifactArchiver or JavadocArchiver, so return 0 instead of IOException.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14704 71c3de6d-444a-0410-be80-ed276b4c234a
2009-01-22 02:12:31 +00:00
kohsuke c5dc44a6a0 rather, this is a better fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14572 71c3de6d-444a-0410-be80-ed276b4c234a
2009-01-17 01:12:48 +00:00
kohsuke 3b5333a9ed bug fix in case channel==null
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14571 71c3de6d-444a-0410-be80-ed276b4c234a
2009-01-17 01:11:57 +00:00
kohsuke 2082197bb6 making it more fool proof, thanks to my colleagues.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13545 71c3de6d-444a-0410-be80-ed276b4c234a
2008-12-13 01:19:02 +00:00
kohsuke b5a240df53 added a convenience method
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13228 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-14 02:26:13 +00:00
kohsuke c483f1196a [FIXED HUDSON-2587]
Notice that the error message indicates a permission problem. The error message isn't as descriptive as it could be, but the directory that Java uses as the temporary directory doesn't seem to let the current user create files.

In 1.260 improved the code so that you can see the directory name.

Go big red!

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13013 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-05 23:47:06 +00:00
kohsuke 694ed60c04 added a debug probe for diagnosing "Not in GZIP format" problem.
See 
http://www.nabble.com/Archiving-Site%3A-IOException%3A-Not-in-GZIP-format-td20325401.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13009 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-05 19:16:45 +00:00
kohsuke 497a3603e9 if a Windows-like path is given to a Unix slave, warn the user. This is just a warning, not an error because '\' is a valid file name character in Unix.
Giving Unix-like path to Windows is OK because '/' is recognized as a separator in Windows, too.

FilePath is also modified so that the relative path works.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12503 71c3de6d-444a-0410-be80-ed276b4c234a
2008-10-04 05:02:21 +00:00
kohsuke d86acadf60 doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12415 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-29 19:29:39 +00:00
kohsuke c3f4ead8a5 file system provisioner related changes
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12252 71c3de6d-444a-0410-be80-ed276b4c234a
2008-09-20 18:11:44 +00:00
kohsuke a24fd49d6a not sure why, but otherwise a directory creation fails.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11605 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-18 21:52:06 +00:00
kohsuke 48014634b0 doc improvement
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11458 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-13 22:33:34 +00:00
kohsuke e68ac29120 formatting changes
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11457 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-13 21:49:48 +00:00
kohsuke 05fccc801e added a method to unzip
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11456 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-13 21:48:40 +00:00
kohsuke 8baf9682c0 making findbugs happier
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11273 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-06 16:50:03 +00:00
kohsuke af8f487296 added error diagnostics
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10979 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-24 02:00:38 +00:00
kohsuke f1defd55f4 doc improvement
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10978 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-24 01:58:32 +00:00
kohsuke e81374ad42 ... except such a method is already in the Functions class.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9888 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-06 03:43:25 +00:00
mdonohue 680d4a42a4 Add a renameTo method to the FilePath class
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9078 71c3de6d-444a-0410-be80-ed276b4c234a
2008-05-08 04:48:09 +00:00
redsolo e2871c00a2 [fixed] Workspace link generates NPE when workspace contains files that Hudson can not access (issue #1633)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9065 71c3de6d-444a-0410-be80-ed276b4c234a
2008-05-07 19:32:42 +00:00
kohsuke e987d2709b It's not obvious to me if the race condition could ever occur, but Rama and I experienced a very suspicious failure once, and we are hoping that this would fix it.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9018 71c3de6d-444a-0410-be80-ed276b4c234a
2008-05-03 00:31:13 +00:00
kohsuke b57ea1615a applied a patch from http://d.hatena.ne.jp/masanobuimai/20080403#1207197232
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8264 71c3de6d-444a-0410-be80-ed276b4c234a
2008-04-04 04:56:10 +00:00
elefevre 4582e44722 minor typo in comments
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8106 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-30 13:58:38 +00:00
kohsuke 550da91d5d package empty files, too.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7657 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-13 01:57:10 +00:00
kohsuke 4560b66dd5 handle absolute path correctly (#1394)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7558 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-11 05:08:36 +00:00
kohsuke c4e6a7d6d3 improved the file mask validation handling.
When ArtifactArchiver reports file mask problem, also try to diagnose the problem.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6990 71c3de6d-444a-0410-be80-ed276b4c234a
2008-02-05 06:38:12 +00:00
kohsuke 066b74ab7a improved the path handling logic. (#1248)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6981 71c3de6d-444a-0410-be80-ed276b4c234a
2008-02-04 01:36:52 +00:00
kohsuke 14087498c2 improved the path handling logic. (#1248)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6980 71c3de6d-444a-0410-be80-ed276b4c234a
2008-02-04 01:34:46 +00:00
kohsuke 19c55230d1 wrong tokenizer (#1175)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6718 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-17 05:51:52 +00:00
kohsuke f80b714f17 use the utility method to avoid using whitespace as the pattern separator (#1175)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6664 71c3de6d-444a-0410-be80-ed276b4c234a
2008-01-15 05:26:38 +00:00
kohsuke 77c6378b1a On Windows this method doesn't report a good error message, so improve diagnosability by adding messages.
See http://www.nabble.com/ClearCase-plugin-0.2-not-working-with-1.160-tf4948031.html


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6221 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-06 02:38:57 +00:00
kohsuke 539789f11a make sure that the base directory exists first.
See http://www.nabble.com/ClearCase-plugin-0.2-not-working-with-1.160-tf4948031.html


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6220 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-06 02:37:50 +00:00
kohsuke 52bab8583a doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5892 71c3de6d-444a-0410-be80-ed276b4c234a
2007-11-14 01:22:24 +00:00
kohsuke 23d5d86011 fixing the zip file support for glob.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4256 71c3de6d-444a-0410-be80-ed276b4c234a
2007-08-13 05:12:50 +00:00
kohsuke b41d0d7404 applied patch for #448 from Valeri.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4242 71c3de6d-444a-0410-be80-ed276b4c234a
2007-08-12 23:49:37 +00:00
kohsuke 8077d3abbd doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4241 71c3de6d-444a-0410-be80-ed276b4c234a
2007-08-12 23:44:00 +00:00
kohsuke 07bcb1a2f5 Improved Windows/Unix detection (#631).
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3706 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-14 19:47:15 +00:00
kohsuke f0265a5086 added one more convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3262 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-29 13:48:37 +00:00
kohsuke 08ad6c84da fixed a bug where a long file name fails to copy.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3058 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-12 20:52:23 +00:00
kohsuke 73a7cff282 fixed a bug where a long file name fails to copy.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3057 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-12 20:51:37 +00:00
kohsuke 5684310470 set the resource name to improve the error message quality.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3055 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-12 19:22:19 +00:00
kohsuke 62e6443d19 typo.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2986 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-09 22:39:15 +00:00
kohsuke 964fdabe18 added one more method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2982 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-08 19:30:40 +00:00
kohsuke 1904396993 fixed #435.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2920 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-07 19:54:56 +00:00
kohsuke 65dcdbc568 crucial bug fix in remote->local copy.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2890 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-06 16:59:24 +00:00
kohsuke 26ee3433ed performance improvement in the recursive copy method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2867 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-06 14:19:15 +00:00
kohsuke 42aa0f9310 modified to use String.format to avoid unexpected number formatting issues with MessageFormat.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2714 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-27 05:17:23 +00:00
kohsuke d80e4b1f0a improved error message.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2596 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-24 01:18:13 +00:00
kohsuke 81c9a57ee4 added code for pattern matching error check support.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2592 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-24 01:06:51 +00:00