Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
129 ghuddy 4
Response.Expires = 0   ' always load the page, dont store
119 ghuddy 5
%>
6
<%
7
'=====================================================
129 ghuddy 8
'            Ad Hoc Release Notes
119 ghuddy 9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ Variable Definition -------------
23
Dim parPv_id
24
'------------ Constants Declaration -----------
25
'------------ Variable Init -------------------
26
parPv_id = Request("pv_id")
27
'----------------------------------------------
28
%>
29
<%
30
Sub AdHocReleaseNotes ( PvId )
129 ghuddy 31
   Dim objWSH, fileName
32
 
33
   objEH.TryORA ( OraSession )
34
   On Error Resume Next
35
 
36
   OraDatabase.ExecuteSQL " UPDATE package_versions "&_
37
                          " SET release_notes_info = '"& enum_RELEASE_NOTES_GENERATING &"'"&_
38
                          " WHERE pv_id = "& PvId
39
 
40
   objEH.CatchORA ( OraSession )
41
 
42
   If objEH.LastOraFailed = FALSE Then
43
 
44
      Set objWSH = Server.CreateObject("WScript.Shell")
45
 
46
      fileName = Replace( PvId &"."& Timer, ".", "_" ) &".html"
47
 
48
      objWSH.Run   "cmd.exe /c cscript.exe //B //NoLogo "& rootPath & SCRIPTS_FOLDER &"\on_Make_Official.wsf //job:GetComponents //job:GenerateReleaseNotes "&_
49
                  "/pv_id:"& PvId &" /file:"& fileName , _
50
                  0, True
51
 
52
 
53
      '-- Dispay Relase Notes
54
      Response.write ReadFile( Server.MapPath("temp") &"\"& fileName )
55
 
56
      '-- Clean Up
57
      Call DeleteFile ( Server.MapPath("temp") &"\"& fileName )
58
   End If
59
 
119 ghuddy 60
End Sub
61
%>
62
<%
63
'---------------------------------- MAIN LINE ----------------------------------------
64
 
65
' REQUREMENTS CHECK
66
Call AdHocReleaseNotes ( parPv_id )
67
%>
68
 
69
<!-- DESTRUCTOR ------->
129 ghuddy 70
<!--#include file="common/destructor.asp"-->