Subversion Repositories DevTools

Rev

Go to most recent revision | 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
'				Generate Files and Folders
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
Dim parRfile
25
Dim rsPkgInfo
26
Dim retERRmsg
27
Dim retParameters
28
'------------ Constants Declaration -----------
29
'------------ Variable Init -------------------
30
parPv_id = QStrPar("pv_id")
31
parRfile = QStrPar("rfile")
32
'----------------------------------------------
33
%>
34
<%
35
Sub RunGenerateComponents ( nPv_id )
36
	Dim objWSH
37
	Set objWSH = Server.CreateObject("WScript.Shell")
38
 
39
	objWSH.Run   "cmd.exe /c cscript.exe //B //NoLogo "& rootPath & SCRIPTS_FOLDER &"\on_Make_Official.wsf //job:GetComponents "&_
40
                 "/pv_id:"& nPv_id &" /f", _
41
                 0, True 
42
 
43
 
44
	'OraSession.BeginTrans
45
	'OraDatabase.ExecuteSQL " UPDATE package_versions "&_
46
	'					   " SET release_notes_info = '"& enum_RELEASE_NOTES_FILES_RECAPTURED &"'"&_
47
	'					   " WHERE pv_id = "& nPv_id &_
48
	'					   "   AND release_notes_info NOT LIKE 'MSG:%'"
49
'	
50
 '   OraSession.CommitTrans
51
 
52
End Sub
53
%>
54
<%
55
'---------------------------------- MAIN LINE ----------------------------------------
56
' REQUREMENTS CHECK
57
Call RunGenerateComponents ( parPv_id )
58
 
59
'Return Page
60
If parRfile = "" Or parRfile = "_generate_release_notes.asp" Then
61
    Response.Redirect ( "files_and_folders.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
62
Else
63
    Response.Redirect ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
64
End If
65
%>
66
 
67
 
68
<!-- DESTRUCTOR ------->
69
<!--#include file="common/destructor.asp"-->