kkkon
8a9e1ab59f
[FIXED JENKINS-16846] fix logic and add test
...
FilePath#moveAllChildrenTo faild,
when same name directory exist.
change Void to void, recursive_invoke is internal helper function.
thanks review by jglick
2013-02-21 19:30:36 +09:00
Lars Hvile
35f7653b7b
[JENKINS-16215] Avoiding unnecessary downloads in FilePath.installIfNecessaryFrom.
...
The updated version uses the locally cached timestamp, '.timestamp', to set the
'If-Modified-Since' header. 304 Not Modified responses are dealt with by
aborting the installation.
2012-12-28 14:43:41 +01:00
Erik Lindblad
f66e19c072
JENKINS-15418 take shares int account, ignore short paths
2012-10-25 17:18:07 +02:00
Jesse Glick
a885cc2179
[FIXED JENKINS-7214] FilePath.validateAntFileMask too slow for /configure.
2012-09-19 16:43:20 -04:00
Jesse Glick
347bca5e5a
testValidateAntFileMask
2012-09-19 16:03:26 -04:00
Christoph Kutzinski
c27918fefe
More test refactoring to make test more readable - at least IMHO
2012-08-26 23:48:28 +02:00
Christoph Kutzinski
8a0e13813f
minor test refactoring
2012-08-26 23:26:47 +02:00
bap2000
9d8f300179
Enable ant default excludes to be turned off.
...
Add a new overload method to list files that include the files that ant excludes by default.
2012-05-14 16:01:42 -07:00
David Reiss
e15b2e19e3
[FIXED JENKINS-13202] Don't set mtime or mode on symlinks
...
Previously, the untar code tries to set the last modified time and mode
on every untarred file. However, if the tar contains a broken symlink,
or a symlink that points to a file that has not been untarred yet, the
time/mode setting would fail on the broken symlink.
Symlinks don't have meaningful modified times or modes of their own, so
only set these values on non-symlinks.
Rename the file "a" in the test to expose the bug.
2012-05-08 14:52:52 -07:00
Stephen Connolly
71debc2b89
[JENKINS-13649] Adding a test case
2012-05-01 09:39:05 +01:00
Kohsuke Kawaguchi
d184d53b24
[JENKINS-9118]
...
Tar/untar now correctly supports symlinks.
2012-03-09 18:26:22 -08:00
Christoph Kutzinski
b4fe626f73
[JENKINS-11073] don't fail copyToWithPermissions if setting last-modified fails on Windows (more reliable detection of Windows platforms than before)
2011-12-30 16:51:32 +01:00
Christoph Kutzinski
8755e59c9a
[FIXED JENKINS-11073] handle failure to set timestamp on Windows platforms more gracefully - this time hopefully for real
2011-11-23 20:28:51 +01:00
Christoph Kutzinski
0ccc076b40
fixed some compiler warnings
2011-07-24 10:38:52 +02:00
Kohsuke Kawaguchi
3614868694
Merge branch 'oss'
...
Conflicts:
core/src/main/java/hudson/Functions.java
core/src/main/java/hudson/model/AutoCompletionCandidates.java
core/src/main/java/hudson/model/ViewDescriptor.java
core/src/main/resources/lib/hudson/3rdPartyLicenses.jelly
core/src/main/resources/lib/hudson/newFromList/form.jelly
core/src/main/resources/lib/hudson/projectViewRow.jelly
core/src/main/resources/lib/hudson/thirdPartyLicenses.jelly
core/src/main/resources/lib/layout/renderOnDemand.jelly
core/src/test/java/hudson/FilePathTest.java
test/src/test/resources/lib/layout/RenderOnDemandTest/testBehaviour.jelly
test/src/test/resources/scripts/BehaviorTest/testCssSelectors.jelly
ui-samples-plugin/src/main/resources/hudson/plugins/ui_samples/JavaScriptProxy/index.jelly
2011-04-21 15:37:31 -07:00
Kohsuke Kawaguchi
957ffd3009
[FIXED JENKINS-7871] Fixed a race condition in FilePath.copyTo
...
that results in missing tail bits when the master is heavily loaded.
2011-04-21 13:39:48 -07:00
bap2000
5cbe17973b
Add method to list with excludes
2011-04-10 14:29:55 +01:00
Kohsuke Kawaguchi
c3fc09939c
[FIXED JENKINS-7871] Fixed a race condition in FilePath.copyTo
...
that results in missing tail bits when the master is heavily loaded.
2011-03-14 13:31:58 -07:00
mindless
ed81cd5f54
[FIXED HUDSON-6494] fix FilePath.getParent() so parent of /foo is /
...
(not "."), and handle edge case so path with no parent ("/" or "abc")
returns null instead of getting IndexOutOfBoundsException.
(returning null is consistent with File.getParentFile())
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30917 71c3de6d-444a-0410-be80-ed276b4c234a
2010-05-11 17:04:38 +00:00
mindless
ae837cecf4
[FIXED HUDSON-5951] improve normalization of ".." in FilePath
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30462 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 07:35:22 +00:00
mindless
5ad11a0dbc
[FIXED HUDSON-6332] for 1.357
...
Add setOverwrite(true) for local->local copy in FilePath.copyRecursiveTo().
This makes it consistent with master/slave copy (either direction),
and also avoids returning 0 if all files already have current/newer timestamp
which some code (javadoc publishing, copyartifact plugin) would interpret as
copy failure or no matching files found.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30450 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 23:53:41 +00:00
kohsuke
9d63c0223f
normalization needs to avoid producing empty string.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28142 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-02 19:18:28 +00:00
kohsuke
787d843d3d
perform path normalization to get rid of "." and ".." in the path.
...
Without it, FilePath.getParent() and File.getParent() doesn't work correctly.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27956 71c3de6d-444a-0410-be80-ed276b4c234a
2010-02-26 00:30:15 +00:00
kohsuke
d4f345f98e
Maven picks up *Test, so renaming
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23554 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-07 00:49:57 +00:00
kohsuke
bae8b35c8f
refactored the commonality out
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23552 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 23:22:44 +00:00
kohsuke
7589cf7cb0
it throws an exception if deletion fails
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22331 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-01 21:33:17 +00:00
kohsuke
5abbdff34b
fixed a test failure on Windows
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22315 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-01 17:42:58 +00:00
kohsuke
7c63b5215f
redundant reference to the Assert class.
...
renamed a file so that we can see which one is refusing to be deleted.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22272 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-28 22:16:27 +00:00
kohsuke
97af019ca7
Merged revisions 21782-21783 via svnmerge from
...
https://www.dev.java.net/svn/hudson/branches/rc
........
r21782 | kohsuke | 2009-09-17 10:22:50 -0700 (Thu, 17 Sep 2009) | 1 line
[FIXED HUDSON-4039] Several classes need to be marked as serializable.
........
r21783 | kohsuke | 2009-09-17 10:29:06 -0700 (Thu, 17 Sep 2009) | 1 line
added a regression test for HUDSON-4039
........
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21797 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 21:31:48 +00:00
huybrechts
2935258e91
deleting temporary file after test
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16115 71c3de6d-444a-0410-be80-ed276b4c234a
2009-03-08 21:43:52 +00:00
kohsuke
9f71682941
a test that hopefully catch the file descriptor leak in the copyTo method if it happens again.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15499 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-20 19:54:57 +00:00
kohsuke
72e0bb4db5
bug fix in the channel tear down
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15457 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-19 18:49:10 +00:00
kohsuke
a41ed6e4a0
delete tmporary file created during a test
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15456 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-19 18:46:37 +00:00
kohsuke
06c30ce690
[HUDSON-3077]
...
Adding more probes to understand where the invalid data creeps in
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15446 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-19 00:34:27 +00:00
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
3251761d28
fixed a bug when a stream is closed immediately after it's opened.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2894 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-06 17:54:02 +00:00