Subversion Repositories DevTools

Rev

Blame | 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
        Set objWSH = Server.CreateObject("WScript.Shell")
        
        OraSession.BeginTrans
        OraDatabase.ExecuteSQL " UPDATE package_versions "&_
                                                   " SET release_notes_info = '"& enum_RELEASE_NOTES_GENERATING &"'"&_
                                                   " WHERE pv_id = "& PvId
        
    OraSession.CommitTrans
        
        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 Sub
%>
<%
'---------------------------------- MAIN LINE ----------------------------------------

' REQUREMENTS CHECK
Call AdHocReleaseNotes ( parPv_id )
%>

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