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
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'				Ad Hoc Release Notes
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 )
31
	Dim objWSH, fileName
32
	Set objWSH = Server.CreateObject("WScript.Shell")
33
 
34
	OraSession.BeginTrans
35
	OraDatabase.ExecuteSQL " UPDATE package_versions "&_
36
						   " SET release_notes_info = '"& enum_RELEASE_NOTES_GENERATING &"'"&_
37
						   " WHERE pv_id = "& PvId
38
 
39
    OraSession.CommitTrans
40
 
41
	fileName = Replace( PvId &"."& Timer, ".", "_" ) &".html"
42
 
43
	objWSH.Run   "cmd.exe /c cscript.exe //B //NoLogo "& rootPath & SCRIPTS_FOLDER &"\on_Make_Official.wsf //job:GetComponents //job:GenerateReleaseNotes "&_
44
                 "/pv_id:"& PvId &" /file:"& fileName , _
45
                 0, True 
46
 
47
 
48
	'-- Dispay Relase Notes
49
	Response.write ReadFile( Server.MapPath("temp") &"\"& fileName )
50
 
51
	'-- Clean Up
52
	Call DeleteFile ( Server.MapPath("temp") &"\"& fileName )
53
 
54
End Sub
55
%>
56
<%
57
'---------------------------------- MAIN LINE ----------------------------------------
58
 
59
' REQUREMENTS CHECK
60
Call AdHocReleaseNotes ( parPv_id )
61
%>
62
 
63
<!-- DESTRUCTOR ------->
64
<!--#include file="common/destructor.asp"-->