Subversion Repositories DevTools

Rev

Rev 129 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
Option explicit
Response.Expires = 0   ' always load the page, dont store
%>
<%
'=====================================================
'            Ad Hoc Release Notes
'=====================================================
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/common_dbedit.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<%
'------------ Variable Definition -------------
Dim parPv_id
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPv_id = Request("pv_id")
'----------------------------------------------
%>
<%
Sub AdHocReleaseNotes ( PvId )
   Dim objWSH, fileName

   objEH.TryORA ( OraSession )
   On Error Resume Next

   OraDatabase.ExecuteSQL " UPDATE package_versions "&_
                          " SET release_notes_info = '"& enum_RELEASE_NOTES_GENERATING &"'"&_
                          " WHERE pv_id = "& PvId

   objEH.CatchORA ( OraSession )

   If objEH.LastOraFailed = FALSE Then

      Set objWSH = Server.CreateObject("WScript.Shell")

      fileName = Replace( PvId &"."& Timer, ".", "_" ) &".html"

      objWSH.Run   "cmd.exe /c cscript.exe //B //NoLogo "& rootPath & SCRIPTS_FOLDER &"\on_Make_Official.wsf //job:GetComponents //job:GenerateReleaseNotes "&_
                  "/pv_id:"& PvId &" /file:"& fileName , _
                  0, True


      '-- Dispay Relase Notes
      Response.write ReadFile( Server.MapPath("temp") &"\"& fileName )

      '-- Clean Up
      Call DeleteFile ( Server.MapPath("temp") &"\"& fileName )
   End If

End Sub
%>
<%
'---------------------------------- MAIN LINE ----------------------------------------

' REQUREMENTS CHECK
Call AdHocReleaseNotes ( parPv_id )
%>

<!-- DESTRUCTOR ------->
<!--#include file="common/destructor.asp"-->