kohsuke
fafa4bec66
NPE fix
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18945 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 06:46:57 +00:00
kohsuke
bcd8e37595
finally introduced the builder pattern for Launcher, to stop combinatorial explosion of the launch method
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18944 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 06:38:22 +00:00
kohsuke
ca576cf3d4
ping thread shouldn't keep the JVM alive
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18943 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 05:30:36 +00:00
kohsuke
7baa9c11cd
if the connection is terminated, abort the pending executing calls.
...
The primary motivation of this is to cancel the CLI task execution when the connection is severed (for example by Ctrl+C on the CLI JVM.)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18941 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 05:24:43 +00:00
kohsuke
45b30a3da6
Future used in Queue can now cancel the task
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18940 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 05:01:32 +00:00
kohsuke
93e366ae44
Future used in Queue can now cancel the task
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18939 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 04:56:21 +00:00
kohsuke
cf439c5be9
StringBuffer->StringBuilder
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18938 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 04:42:57 +00:00
kohsuke
7556170091
htmlunit is no longer used in the core. Presumably a merge failure
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18930 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 01:36:42 +00:00
kohsuke
d5dd4b853c
Moving remaining pieces and really removing SVNKit from the core dependency.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18926 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 01:15:20 +00:00
kohsuke
a20e6e43ca
Because of the tricky license in SVNKit that has a viral effect, I'm moving it out into a separate plugin so that
...
people can choose to remove it from their distributions.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18923 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 00:59:11 +00:00
jglick
d8bdd39e3d
NPE configuring project tied to offline slave.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18917 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 23:38:30 +00:00
kohsuke
04f1dd6712
Don't populate the default value of the Subversion local directory name.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18916 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 20:56:45 +00:00
kohsuke
679ffdee68
Implemented more intelligent polling assisted by <tt>commit-hook</tt> from SVN repository.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18915 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 20:44:56 +00:00
kohsuke
7b7d126945
avoid using deprecated methods
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18914 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 20:27:44 +00:00
swiest
a3c0a1c012
Renamed file to follow the convention of spelling the country part of a locale in uppercase letters (here: "BR" instead of "br").
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18913 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 18:38:19 +00:00
swiest
87c74f108e
Renamed file to follow the convention of spelling the country part of a locale in uppercase letters (here: "BR" instead of "br").
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18912 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 18:36:48 +00:00
kohsuke
5d613a9319
typo
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18905 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 18:46:47 +00:00
kohsuke
f5d4856b5c
cancel out the effect of buffering done by JDK
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18904 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 18:46:38 +00:00
kohsuke
73b503bf67
C&P error
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18903 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 17:35:54 +00:00
kohsuke
753a531fdb
moved the '/cli' handling logic to the CLI class
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18902 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 17:34:36 +00:00
kohsuke
87af4f3a3b
allow ExecutorService to be supplied from outside
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18901 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 16:36:46 +00:00
kohsuke
00cf9f432f
copy a file with permissions
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18899 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 16:04:36 +00:00
kohsuke
b172a606e2
making it closeable
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18898 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 15:39:18 +00:00
kohsuke
97d0c902a4
integrated SVNKit 1.3.0-hudson-1
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18897 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 15:38:54 +00:00
kohsuke
26971784d5
added a convenience method
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18896 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 15:21:24 +00:00
kohsuke
9546fd2c75
refactored for a better reusability
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18894 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-14 15:00:30 +00:00
kohsuke
380b60b8f8
PipedInputStream/OutputStream has a design problem.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18888 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-13 21:42:00 +00:00
kohsuke
d232a10734
release the upload side even if this ends abnormally
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18887 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-13 21:29:08 +00:00
kohsuke
d0d54a69a6
The PipedInputStream/OutputStream combo has a serious performance problem in it. Namely, the writer doesn't wake up the reader when it writes new data, and instead it relies on the wait(1000) call on the reader side to notice new data.
...
This means it can have up to 1 sec latency for new data to be picked up. We should replace all the use of PipedIn/OutStream by something else that works.
In this instance, I tweaked the code so that it doesn't go through a pipe. This assumes that the servlet container allows a different thread to drain InputStream.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18883 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-13 21:22:12 +00:00
sogabe
3e5d76c30a
Added Japanese localization(CSRF).
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18871 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 23:59:48 +00:00
dty
b719e7572c
Fix typo.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18870 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 23:11:42 +00:00
kohsuke
3497535129
one more convenience method
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18869 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 23:00:59 +00:00
kohsuke
bcfa18c93e
this works better with arbitrary Task/Executable implementation
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18866 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 22:49:36 +00:00
kohsuke
e4f025f264
bug fix
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18865 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 22:42:38 +00:00
kohsuke
47cba7244a
error message should indicate why it failed
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18864 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 22:42:28 +00:00
kohsuke
ea3f5359a8
Must be a missing '%'
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18863 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 22:27:55 +00:00
kohsuke
10af42fb8a
every <form> automatically gets the crumb value in the hidden field now, so no need for adding a separate tag.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18862 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 22:26:11 +00:00
kohsuke
816dc8fbfb
pushing crumb support up into Prototype.js
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18861 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 22:07:19 +00:00
kohsuke
1ca425de40
pushing crumb support up into Prototype.js
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18860 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 22:00:12 +00:00
kohsuke
f298126eff
simplifying by using the crumb structure available in JavaScript
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18859 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 21:53:22 +00:00
kohsuke
5f34c0d881
simplifying
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18858 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 21:44:49 +00:00
kohsuke
7ce44ac237
passing in executor from outside so that it works with arbitrary Task implementations better
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18857 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 21:24:49 +00:00
dty
ca3420c1e5
Simplify configuration of crumbs (in the UI) and programmatic usage from
...
hudson-behavior.js.
- Default crumb descriptor no longer presents any configuration UI. If a user
wants to change the crumb field name, that is now done through a system
property, hudson.security.csrf.requestfield.
- Default crumb issuer uses the Hudson secret key as the salt, so this no longer
needs to be a configuration option.
- layout.jelly initializes a crumb structure in hudson-behavior.js so that
Javascript functions can have access to this information without need it
passed in by the caller.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18856 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 21:04:23 +00:00
jheymans
009023e6ae
fix for weblogic zip:/ prefix so that Hudson deploys on Weblogic 10.3
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18855 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 20:38:27 +00:00
kohsuke
194e39cad5
documenting that toString() is used for UI rendering. I should probably have getDisplayName() instead.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18854 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 19:15:23 +00:00
kohsuke
509950e9af
Fixed a bug in CLI where the state of command executions may interfere with each other.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18852 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 19:12:35 +00:00
kohsuke
3c0516f146
this happens if the crumb is not configured, so tone down the error
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18851 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 19:08:35 +00:00
kohsuke
f2cb5d7360
Enhanced Queue so that the completion of a task can be tracked more reliably via Future.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18850 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 18:57:45 +00:00
sogabe
d487dcf35a
Fixed wrong Japanese localization.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18844 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 16:33:07 +00:00
kohsuke
531c606c5d
added a transient task support
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18837 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-12 01:42:22 +00:00