Line | |
---|
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <title>Ant Installer</title>
|
---|
5 | <link href="style-print.css" type="text/css" rel="stylesheet">
|
---|
6 | <link rel="SHORTCUT ICON" href="images/antinstaller-icon.png">
|
---|
7 | <meta name="keywords"
|
---|
8 | content="Ant, installer, AntInstaller, gui, console, input, parameters, properties, swing, user interface, validation, configuration">
|
---|
9 | </head>
|
---|
10 | <body>
|
---|
11 | <div class="tpheadertitle">AntInstaller</div>
|
---|
12 | <div class="tpcontent">
|
---|
13 | <!-- JSP start -->
|
---|
14 | <%@page import="java.io.*"%>
|
---|
15 | <%@page import="java.util.*"%>
|
---|
16 | <%
|
---|
17 |
|
---|
18 | String strJspDir = (String)application.getAttribute("myjasper.jsp.dir");
|
---|
19 | File fleJspDir = new File(strJspDir);
|
---|
20 |
|
---|
21 | BufferedReader br = new BufferedReader(new FileReader(new File(fleJspDir, "manual.html")));
|
---|
22 | String line = null;
|
---|
23 | boolean copy = false;
|
---|
24 | while((line = br.readLine()) != null){
|
---|
25 | if(line.indexOf("<h2>Manual</h2>") > -1) {
|
---|
26 | copy = true;
|
---|
27 | }
|
---|
28 | else if(line.indexOf("<!-- content end [segment-end]-->") > -1) {
|
---|
29 | copy = false;
|
---|
30 | }
|
---|
31 | if(copy) {
|
---|
32 | out.println(line);
|
---|
33 | }
|
---|
34 | }
|
---|
35 | %>
|
---|
36 | </div>
|
---|
37 | </div>
|
---|
38 | </body>
|
---|
39 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.