maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r357899 - /maven/sandbox/issue/rissue/issue.rb
Date Tue, 20 Dec 2005 04:03:22 GMT
Author: jvanzyl
Date: Mon Dec 19 20:03:18 2005
New Revision: 357899

URL: http://svn.apache.org/viewcvs?rev=357899&view=rev
Log:
o SOAP create project method doesn't work at all really and it's impossible to create a project
with an existing scheme.
  so screen scraping it is ...

Modified:
    maven/sandbox/issue/rissue/issue.rb

Modified: maven/sandbox/issue/rissue/issue.rb
URL: http://svn.apache.org/viewcvs/maven/sandbox/issue/rissue/issue.rb?rev=357899&r1=357898&r2=357899&view=diff
==============================================================================
--- maven/sandbox/issue/rissue/issue.rb (original)
+++ maven/sandbox/issue/rissue/issue.rb Mon Dec 19 20:03:18 2005
@@ -156,33 +156,8 @@
     description = CGI.escape( description )
     name = CGI.escape( name )
     query = "#{@config['server']}/secure/admin/AddProject.jspa?name=#{name}&key=#{key}&url=#{url}&lead=#{lead}&assigneeType=2&description=#{description}&notificationScheme=#{notificationSchemeId}&permissionScheme=#{permissionSchemeId}&issueSecurityScheme=-1&Create=Create&os_username=#{@config['user']}&os_password=#{@config['password']}"
-    puts query
     request = URI.parse(query)
     res = Net::HTTP.get(request)
-    puts res
   end  
-
-  # The soap interface is just not up to scratch ...
-  def xcreateProject( key, name, description, lead, permissionSchemeId, notificationSchemeId
)
-    project = RemoteProject.new()
-    project.key = key
-    project.name = name
-    project.description = description
-    project.lead = lead
-    
-    permissionScheme = RemotePermissionScheme.new()
-    permissionScheme.id = permissionSchemeId
-    permissionScheme.id = 0
-    
-    project.permissionScheme = permissionScheme
-
-    begin
-      project = getServer().createProjectFromObject( @token, project )
-    rescue Exception => e
-      puts ">>> #{e}"
-    end
-
-    return project
-  end
 
 end



Mime
View raw message