lib/verify.rb in dev_tasks-0.0.154 vs lib/verify.rb in dev_tasks-0.0.155

- old
+ new

@@ -8,18 +8,30 @@ end def update if(defined?(DEV_TASKS)) + svn_publish_uri="" + if(DEV_TASKS).has_key?(:publish_path) + if(DEV_TASKS[:publish_path].include?('svn://') || DEV_TASKS[:publish_path].include?('file:///')) + latestRev=Environment.svn_latest_revision + svn_publish_uri="#{DEV_TASKS[:publish_path]}/#{DEV_TASKS[:relative_directory]}-#{latestRev}" + svn_info=`svn info #{svn_publish_uri} 2>&1` + if(svn_info.include?('URL:')) + Console.debug "#{svn_publish_uri} already exists." + return + end + end + end + if(Environment.scm=='svn') latestRev=Environment.svn_latest_revision Console.debug "Verify.update, svn_latest_revision=#{latestRev}" uri=DEV_TASKS[:scm_origin]+"@"+latestRev dep_dir="#{Environment.dev_root}/dep/#{DEV_TASKS[:relative_directory]}@#{latestRev}" if(!File.exists?(dep_dir)) add "svn export #{uri} #{dep_dir}@" - add "<%Environment.rake('#{dep_dir}','build',true)%>" - #add "<%Environment.rake('#{dep_dir}','test',true)%>" + add "<%Environment.rake('#{dep_dir}','build',true)%>" add "<%DEV_TASKS[:commands][:publish].update%>" end end end end \ No newline at end of file