| 
									
										
										
										
											2006-11-16 22:36:52 +08:00
										 |  |  | #!/bin/bash -xe
 | 
					
						
							| 
									
										
										
										
											2009-02-07 04:05:24 +08:00
										 |  |  | # The MIT License | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | # Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | # Permission is hereby granted, free of charge, to any person obtaining a copy | 
					
						
							|  |  |  | # of this software and associated documentation files (the "Software"), to deal | 
					
						
							|  |  |  | # in the Software without restriction, including without limitation the rights | 
					
						
							|  |  |  | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 
					
						
							|  |  |  | # copies of the Software, and to permit persons to whom the Software is | 
					
						
							|  |  |  | # furnished to do so, subject to the following conditions: | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | # The above copyright notice and this permission notice shall be included in | 
					
						
							|  |  |  | # all copies or substantial portions of the Software. | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 
					
						
							|  |  |  | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 
					
						
							|  |  |  | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | 
					
						
							|  |  |  | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 
					
						
							|  |  |  | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 
					
						
							|  |  |  | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | 
					
						
							|  |  |  | # THE SOFTWARE. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-11-08 23:11:58 +08:00
										 |  |  | # | 
					
						
							| 
									
										
										
										
											2006-11-16 22:36:52 +08:00
										 |  |  | # publish Hudson javadoc and deploy that into the java.net CVS repository | 
					
						
							| 
									
										
										
										
											2006-11-08 23:11:58 +08:00
										 |  |  | #  | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-08-22 09:00:11 +08:00
										 |  |  | # make sure we have up-to-date copy so that the commit won't fail later | 
					
						
							| 
									
										
										
										
											2006-11-18 02:02:13 +08:00
										 |  |  | pushd ../../../www/javadoc | 
					
						
							| 
									
										
										
										
											2008-04-15 09:31:54 +08:00
										 |  |  | svn revert -R . | 
					
						
							| 
									
										
										
										
											2008-04-08 12:20:24 +08:00
										 |  |  | svn update | 
					
						
							| 
									
										
										
										
											2006-11-18 02:02:13 +08:00
										 |  |  | popd | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 18461,18463,18473-18474,18481 via svnmerge from 
https://www.dev.java.net/svn/hudson/branches/rc
........
  r18461 | kohsuke | 2009-05-26 18:39:51 -0700 (Tue, 26 May 2009) | 1 line
  
  merged back the RC branch
........
  r18463 | kohsuke | 2009-05-26 18:40:06 -0700 (Tue, 26 May 2009) | 1 line
  
  creating a new RC branch
........
  r18473 | kohsuke | 2009-05-27 09:33:16 -0700 (Wed, 27 May 2009) | 1 line
  
  publish-javadoc happens later, so this comment no longer appears useful
........
  r18474 | kohsuke | 2009-05-27 09:38:45 -0700 (Wed, 27 May 2009) | 1 line
  
  modified to do aggregated javadoc and publish that
........
  r18481 | kohsuke | 2009-05-27 11:20:34 -0700 (Wed, 27 May 2009) | 4 lines
  
  [FIXED HUDSON-3706]
  MaskingClassLoader that's supposed to throw awy components.xml for interceptions are still kicking in when MavenEmbedder run on slaves, as RemoteClassLoader mangles the URL that the MaskingClassLoader was looking for.
  
  So I relaxed the path matching and sniff the content to decide if components.xml is for interception or not.
........
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18487 71c3de6d-444a-0410-be80-ed276b4c234a
											
										 
											2009-05-28 05:10:29 +08:00
										 |  |  | cp -R target/checkout/target/site/apidocs/* ../../../www/javadoc | 
					
						
							| 
									
										
										
										
											2006-11-08 23:11:58 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-11-18 02:02:13 +08:00
										 |  |  | cd ../../../www/javadoc | 
					
						
							| 
									
										
										
										
											2006-11-08 23:11:58 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-23 22:44:38 +08:00
										 |  |  | # remove timestamp as this creates unnecessary revisions for javadoc files | 
					
						
							| 
									
										
										
										
											2008-04-04 00:50:04 +08:00
										 |  |  | find . -name "*.html" | xargs perl -p -i.bak -e "s|-- Generated by javadoc .+--|-- --|" | 
					
						
							|  |  |  | find . -name "*.html" | xargs perl -p -i.bak -e "s|<META NAME=\"DATE\" CONTENT=\"....-..-..\">||" | 
					
						
							| 
									
										
										
										
											2008-03-23 22:44:38 +08:00
										 |  |  | find . -name "*.bak" | xargs rm | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Merged revisions 18461,18463,18473-18474,18481 via svnmerge from 
https://www.dev.java.net/svn/hudson/branches/rc
........
  r18461 | kohsuke | 2009-05-26 18:39:51 -0700 (Tue, 26 May 2009) | 1 line
  
  merged back the RC branch
........
  r18463 | kohsuke | 2009-05-26 18:40:06 -0700 (Tue, 26 May 2009) | 1 line
  
  creating a new RC branch
........
  r18473 | kohsuke | 2009-05-27 09:33:16 -0700 (Wed, 27 May 2009) | 1 line
  
  publish-javadoc happens later, so this comment no longer appears useful
........
  r18474 | kohsuke | 2009-05-27 09:38:45 -0700 (Wed, 27 May 2009) | 1 line
  
  modified to do aggregated javadoc and publish that
........
  r18481 | kohsuke | 2009-05-27 11:20:34 -0700 (Wed, 27 May 2009) | 4 lines
  
  [FIXED HUDSON-3706]
  MaskingClassLoader that's supposed to throw awy components.xml for interceptions are still kicking in when MavenEmbedder run on slaves, as RemoteClassLoader mangles the URL that the MaskingClassLoader was looking for.
  
  So I relaxed the path matching and sniff the content to decide if components.xml is for interception or not.
........
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18487 71c3de6d-444a-0410-be80-ed276b4c234a
											
										 
											2009-05-28 05:10:29 +08:00
										 |  |  | # add files that are new | 
					
						
							| 
									
										
										
										
											2008-04-09 22:55:28 +08:00
										 |  |  | svn add $(svn status | grep "^?" | cut -d " " -f2-) . | 
					
						
							| 
									
										
										
										
											2008-04-08 12:20:24 +08:00
										 |  |  | svn commit -m "commiting javadoc" | 
					
						
							| 
									
										
										
										
											2006-11-08 23:11:58 +08:00
										 |  |  | 
 |