Kohsuke Kawaguchi
f49d625845
[FIXED JENKINS-11251]
...
The actual meat of the change is in remoting.
2012-06-15 18:30:16 -07:00
Kohsuke Kawaguchi
06ec0c3dd8
doc improvement
2012-05-22 16:23:22 -07: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
Jerome Lacoste
4aab81f823
Clean up FilePath. Extract one method out, and ensure closing of input stream after copy
2012-05-01 11:42:24 +02:00
Stephen Connolly
c92c2217ec
[FIXES JENKINS-13649] As FilePath(FilePath,String) expects multi-segment relative paths, we should ensure that the multiple segments are using the correct separator character for the remote OS
2012-05-01 09:21:39 +01:00
Kohsuke Kawaguchi
2dd70965a7
[FIXED JENKINS-9118]
...
WorkspaceSnapshot now uses the tar.gz format to handle symlinks
correctly.
2012-03-09 18:30:24 -08:00
Kohsuke Kawaguchi
d184d53b24
[JENKINS-9118]
...
Tar/untar now correctly supports symlinks.
2012-03-09 18:26:22 -08:00
Jørgen P. Tjernø
60660095c5
Document parts of FilePath.
...
FilePath was a little lacking in documentation, this documents getRemote,
createTempFile, createTextTempFile and createTempDir.
2012-01-18 17:32:45 -08:00
Kohsuke Kawaguchi
b5973a4a1d
Merge branch 'master' of github.com:jenkinsci/jenkins
2012-01-04 12:18:51 -08:00
Christoph Kutzinski
ce2c0c5a1b
fixed some warnings
2011-12-30 16:51:32 +01: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
Kohsuke Kawaguchi
0d2c557533
clarified
2011-12-25 10:54:44 -08: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
a7ce870c1a
[FIXED JENKINS-11073] handle failure to set timestamp on Windows platforms more gracefully
2011-11-12 17:28:02 +01:00
Craig P. Motlin
22b13104b3
Remove unnecessary interface modifiers.
2011-11-07 14:52:11 -08:00
Ciprian Ciubotariu
f967feaca9
[JENKINS-9577] Fix last modification timestamp after unzip
...
Reordered operations in order to set the file modification time
after applying the permissions.
2011-09-28 03:12:47 +03:00
Kohsuke Kawaguchi
27c4dc8b58
Ant returns 0 if the archive doesn't record the access mode
2011-09-25 20:59:18 -07:00
Kohsuke Kawaguchi
beb166680e
[JENKINS-5271] https wants to join the party
2011-09-18 16:17:44 -07:00
Seiji Sogabe
9207c21f37
[FIXED JENKINS-5271] Tools download does not appear to respect proxy settings.
2011-09-18 16:16:38 -07:00
Ciprian Ciubotariu
37a22a1cac
[FIXED JENKINS-9577] Apply file permissions from zip archives
...
Using the zip support classes just like Ant does in order to apply
permissions. As a side-effect, remote streams need to be stored in a
temporary file before actually unzipping them.
2011-09-12 18:18:19 -07:00
Kohsuke Kawaguchi
552741c980
[FIXED JENKINS-10805] preserve the timestampa as well as permissions
2011-08-24 12:02:14 -07:00
Christoph Kutzinski
4203060463
added some JavaDoc
2011-07-24 10:31:09 +02:00
Nigel Magnay
5679d019ec
Move hudson.model.Jenkins to be jenkins.model.Jenkins - part II
...
Just import changes, from hudson.model.Jenkins -> jenkins.model.Jenkins,
and Javadoc comments.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com >
2011-05-29 11:06:28 +01:00
Nigel Magnay
70c1065814
Stage 1 : Create hudson.model.Jenkins, make Hudson derive from Jenkins.
...
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com >
2011-05-29 11:00:58 +01:00
bap2000
1ead9d3d3c
Add since tag to FilePath.list(includes, excludes)
2011-05-18 18:20:13 +01:00
Kohsuke Kawaguchi
fc5aa88b66
handle legacy slave.jar gracefully
2011-05-10 16:21:10 -07:00
Kohsuke Kawaguchi
6577d788b9
[FIXED JENKINS-9397] fixed a bug in the implementation, added tests.
2011-04-15 17:25:12 -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
alanharder
ebf4146584
[FIXED JENKINS-8802] Allow use of FilePath.validateFileMask and validateFilePath
...
from global level (not in a job config page). Require admin permission for this.
Based on patch from bap.
2011-02-15 16:38:50 -08:00
Dave Brosius
6bd3f83cb1
remove needless null check, subject isn't null (from above)
2011-02-05 19:21:57 -05:00
rseguy
c490e884bc
[HUDSON-8155] handled NoClassDefFoundError
2011-01-11 14:01:27 +01:00
Kohsuke Kawaguchi
3d5d53a55d
[HUDSON-8155] tweaking the code a bit further so that the warning will be issued only once per VM.
2010-12-13 14:23:20 -08:00
rseguy
7f5c02979b
[FIXED HUDSON-8155]
2010-12-13 22:21:55 +01:00
rseguy
687ab93216
FilePath.writeToTar() should be static
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36842 71c3de6d-444a-0410-be80-ed276b4c234a
2010-11-11 15:07:33 +00:00
wyukawa
b0cdf1eb2e
fix link of Apache Ant FileSet URL
...
from http://ant.apache.org/manual/CoreTypes/fileset.html
to http://ant.apache.org/manual/Types/fileset.html
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32164 71c3de6d-444a-0410-be80-ed276b4c234a
2010-06-19 06:45:26 +00:00
kohsuke
4e72f92bc7
Refactored FilePath to expose the archive handling code.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31064 71c3de6d-444a-0410-be80-ed276b4c234a
2010-05-15 13:40:29 +00: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
f855c5ee22
[HUDSON-5951] yay for tests, fix error in new normalize() before it went in any release
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30579 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 21:57:24 +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
957754803b
[FIXED HUDSON-5899] in 1.351.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28500 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 20:33:08 +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
2676adca52
class initialization of Hudson is much more work than that of Util, so pushing these small utilities out to Util to reduce the overhead of remoting.
...
Plus it helps to keep Hudson.java smaller
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27448 71c3de6d-444a-0410-be80-ed276b4c234a
2010-02-13 01:30:56 +00:00
kohsuke
bc66945943
allow InterruptedException to be forwarded
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26482 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-27 02:31:39 +00:00
kohsuke
61a1858dae
exposing FileVisitor and DirScanner so that the calling app can fine tune the archiving process.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26226 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-21 23:25:14 +00:00
kohsuke
29cdfb670d
[FIXED HUDSON-5271] in 1.342. Automatic tool installation wasn't honoring proxy setting.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25811 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-14 15:36:13 +00:00
kohsuke
b6fbebe9ea
[FIXED HUDSON-5272] improved error diagnostics in 1.342.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25810 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-14 15:23:49 +00:00