Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|				      EXPORT ANT  					 |
6
'|					 DEPENDENCIES					 |
7
'|                                                   |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0	' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="_tabs.asp"-->
21
<%
22
' Make sure rtag_id is always present
23
If Request("pv_id") = "" Then
24
	Response.Redirect("index.asp")
25
End If
26
%>
27
<%
28
'------------ ACCESS CONTROL ------------------
29
%>
30
<!--#include file="_access_control_general.asp"-->
31
<%
32
'------------ Variable Definition -------------
33
Dim parPv_id
34
'------------ Constants Declaration -----------
35
'------------ Variable Init -------------------
36
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
37
parPv_id = QStrPar("pv_id")
38
'----------------------------------------------
39
%>
40
<%
41
Function Dependency_List ( NNpv_id )
42
	Dim rsTemp, Query_String, tempSTR
43
	tempSTR = ""
44
 
45
	Query_String = _
46
	" SELECT pkg.pkg_name, pv.pkg_version"&_
47
	"	FROM packages pkg,"&_
48
	"	     package_versions pv,"&_
49
	"	     package_dependencies dep"&_
50
	"	WHERE pv.pkg_id = pkg.pkg_id"&_
51
	"	  AND dep.dpv_id = pv.pv_id"&_
52
	"	  AND dep.pv_id = "& NNpv_id &_
53
	"	ORDER BY UPPER(pkg.pkg_name)"
54
 
55
	Response.Write("<property name=""packagename"" value="""& pkgInfoHash.Item("pkg_name") &"""/>") & VBNewLine
56
 
57
	Response.Write("<property name=""packageversion"" value="""& pkgInfoHash.Item("pkg_version") &"""/>")& VBNewLine & VBNewLine
58
 
59
 
60
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
61
 
62
	While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
63
		tempSTR = tempSTR & To_ANT ( rsTemp("pkg_name"), rsTemp("pkg_version") ) & VBNewLine
64
		rsTemp.MoveNext
65
	WEnd
66
 
67
	Dependency_List = tempSTR
68
 
69
	rsTemp.Close
70
	Set rsTemp = nothing
71
End Function
72
%>
73
<%
74
Call Get_Pkg_Info ( parPv_id, NULL )
75
%>
76
<%Response.Cookies("RELEASEMANAGER_MEMORY")("devl_environment") = "ant"%>
77
<html>
78
<head>
79
<title>Release Manager</title>
80
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
81
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
82
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
83
<link rel="stylesheet" href="images/navigation.css" type="text/css">
84
<script language="JavaScript" src="images/common.js"></script>
85
<!-- TIPS -->
86
<script language="JavaScript" src="images/tipster.js"></script>
87
<script language="JavaScript" src="images/_help_tips.js"></script>
88
 
89
<!-- DROPDOWN MENUS -->
90
<!--#include file="_menu_def.asp"-->
91
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
92
 
93
</head>
94
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
95
<!-- MENU LAYERS -------------------------------------->
96
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
97
</div>
98
<!-- TIPS LAYERS -------------------------------------->
99
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
100
<!----------------------------------------------------->
101
 
102
<!-- HEADER -->
103
<!--#include file="_header.asp"-->
104
<!-- BODY ---->
105
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0">
106
  <tr>
107
    <td align="center" valign="top" background="images/bg_lght_gray.gif">
108
		  <!-- MIDDLE -->
109
		    <table width="650" border="0" cellspacing="0" cellpadding="0">
110
			  <tr> 
111
			    <td> 
112
			      <table width="100%" border="0" cellspacing="0" cellpadding="0">
113
			        <tr> 
114
			          <td width="1%">&nbsp;</td>
115
			          <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
116
			          <td width="1%">&nbsp;</td>
117
			        </tr>
118
			        <tr> 
119
			          <td width="1%">&nbsp;</td>
120
			          <td> 
121
			            <table width="100%" border="0" cellspacing="0" cellpadding="0">
122
			              <tr> 
123
			                <td nowrap class="form_ttl">EXPORT dependencies</td>
124
			                <td align="right" valign="bottom">
125
			                  <%Call Generate_Tab_Menu ( TABarray3, "ANT-using style", "blue" )%>
126
			                </td>
127
			              </tr>
128
			            </table>
129
			          </td>
130
			          <td width="1%">&nbsp;</td>
131
			        </tr>
132
			        <tr> 
133
			          <td align="left" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
134
			          <td background="images/lbox_bg_blue.gif">
135
					    <!-- Heading -->
136
					  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
137
			              <tr> 
138
			                <td nowrap class="lbox_ttl_w"><%=pkgInfoHash.Item ("pkg_name")%>&nbsp;<%=pkgInfoHash.Item ("pkg_version")%></td>
139
							<td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="46"></td>
140
			                <td align="right">
141
							<!-- ACTION BUTTONS ------------------------------------------->
142
							<!------------------------------------------------------------->
143
			                </td>
144
			              </tr>
145
			            </table>
146
			            <!-- END Heading -->
147
			          </td>
148
			          <td align="right" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
149
			        </tr>
150
			        <tr> 
151
			          <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
152
			          <td bgcolor="#FFFFFF" valign="top"> 
153
			            <!-- Body -->
154
			            <table width="100%" border="0" cellspacing="1" cellpadding="2">
155
						<form name="close" method="post" action="dependencies.asp">
156
			                <tr> 
157
			                  <td nowrap width="100%">&nbsp; </td>
158
			                </tr>
159
			                <tr> 
160
			                  <td nowrap width="100%"><span class="form_txt">Copy this dependency export list into your build file to build this package.</span><br><br>
161
			                    <textarea name="FRdeps" rows="25" cols="100" wrap="OFF" class="form_item" onFocus="this.select()"><%=Dependency_List( parPv_id )%></textarea>
162
								<br><br>
163
								<input type="submit" name="btn" value="  Close  " class="form_btn">
164
								<br><br>
165
			                  </td>
166
			                </tr>
167
							<input type="hidden" name="pv_id" value="<%=parPv_id%>">
168
					  		<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
169
						</form>
170
			            </table>
171
			            <!-- END Body-->
172
						    </td>
173
			          <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
174
			        </tr>
175
			        <tr> 
176
			          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
177
			          <td background="images/lbox_bg_blue.gif"></td>
178
			          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
179
			        </tr>
180
			      </table>
181
			    </td>
182
			  </tr>
183
			</table>
184
 
185
	</td>
186
  </tr>
187
  <tr>
188
    <td valign="bottom" background="images/bg_lght_gray.gif">
189
	<!-- FOOTER -->
190
	<!--#include file="_footer.asp"-->
191
	</td>
192
  </tr>
193
</table>
194
</body>
195
</html>
196
<%
197
Call Destroy_All_Objects
198
%>