2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* INSTALL: explain how to install the old and the new server.
	* Makefile: added 'old' target.
	* README: added server to the layout.
	* server/Makefile: added 'trace' target.
	* server/index.aspx: removed file added by mistake.
	* test/Makefile: used to build the .cs files for user controls.

svn path=/trunk/xsp/; revision=8488
This commit is contained in:
Gonzalo Paniagua Javier 2002-10-23 11:01:40 +00:00
Родитель 18976caac9
Коммит c3f1d4b35b
8 изменённых файлов: 60 добавлений и 59 удалений

23
INSTALL
Просмотреть файл

@ -1,24 +1,13 @@
Testing XSP
============
You need to have mono and mcs installed.
Steps for installing the OLD server (only on unix):
Then run:
make old
...and follow the instructions...
Steps for installing the NEW server (it may not work right now with mono):
make install
And it will create a directory called 'rundir' and copy the needed files.
Then:
cd rundir
mono server.exe PORTNUMBER
where PORTNUMBER is the port you want the server to listen on (ie, 8000).
Finally, just point your web browser to:
http://127.0.0.1:PORTNUMBER/
and there you go!
...and follow the instructions...

Просмотреть файл

@ -1,26 +1,31 @@
EXES= src/xsp.exe src/HttpServer/server.exe
TESTS= test/*.aspx test/*.png test/*.xml
all:
make -C src
make -C test
make -C server
install: all
-mkdir rundir
-mkdir rundir/output
cp $(EXES) rundir/
cp $(TESTS) rundir/
mcs --target library -o rundir/output/tabcontrol.dll \
-r System.Web test/tabcontrol.cs
mcs --target library -o rundir/output/tabcontrol2.dll \
-r System.Web test/tabcontrol2.cs
make -C test
make -C server install
@echo ""
@echo Now cd to server/test and run: mono server.exe or ./server.exe
@echo Then point your web browser to http://127.0.0.1:8080/
@echo Enjoy!
old:
rm -rf rundir
-mkdir -p rundir/output
make -C test
make -C src
cp src/xsp.exe src/HttpServer/server.exe rundir
cp test/*.aspx test/*.png test/*.xml rundir
cp test/*.dll rundir/output
@echo ""
@echo Now cd to rundir and run: mono server.exe 8000
@echo Then point your web browser to http://127.0.0.1:8000/
@echo Enjoy!
clean:
make -C test clean
make -C server clean
make -C src clean
uninstall:
rm -rf rundir
rm -rf rundir *~

6
README
Просмотреть файл

@ -5,12 +5,18 @@ Layout:
src/
Source files for the parser/generator and test server.
OBSOLETED!!!
doc/
Documentation about ASP.NET pages
test/
Little sample ASP.NET pages
server/
A stand alone web server that works with MS runtime.
We'll be using it to debug/complete our classes.
Maintainer: gonzalo@ximian.com

Просмотреть файл

@ -1,3 +1,8 @@
2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Makefile: added 'trace' target.
* index.aspx: removed file added by mistake.
2002-10-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ChangeLog:

Просмотреть файл

@ -17,12 +17,16 @@ install: server.exe web.config global.asax
mkdir -p test/bin
cp server.exe web.config global.asax test
cp server.exe test/bin
cp ../test/*.aspx ../test/*.xml test
cp ../test/*.aspx ../test/*.xml ../test/*.png test
cp ../test/*.dll test/bin
server.exe: $(SOURCES)
$(CSC) $(CSCFLAGS) $(REFS) /out:$@ $^
trace:
rm -f server.exe
make -C . CSCFLAGS=/d:TRACE
clean:
rm -f server.exe *~ *.pdb
rm -rf test

Просмотреть файл

@ -1,26 +0,0 @@
<%@ language="C#" %>
<%@ Import namespace="System.IO" %>
<html>
<head>
<title>Welcome to Mono XSP!</title>
</head>
<body>
<h1>Welcome to Mono XSP!</h1>
<a href="http://www.go-mono.com"><img src="mono.png" alt="http://www.go-mono.com"></a>
<p>Here are some ASP.NET examples:</p>
<%
DirectoryInfo dir = new DirectoryInfo (".");
FileInfo[] files = dir.GetFiles ();
for (int i=0; i < files.Length; i++) {
string FileName = Path.GetFileName(files[i].FullName);
if (Path.GetExtension (files[i].FullName) == ".aspx")
FileList.Text += "<li><a href=\"" + FileName + "\">" + FileName + "</a></li>\n";
}
%>
<ul>
<asp:Label id="FileList" runat="server" />
</ul>
<hr />
<small>Generated: <%= DateTime.Now %></small>
</html>

Просмотреть файл

@ -1,3 +1,7 @@
2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Makefile: used to build the .cs files for user controls.
2002-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* databind-arraylist.aspx: fixed variable name.

14
test/Makefile Normal file
Просмотреть файл

@ -0,0 +1,14 @@
CSC=mcs
%.dll: %.cs
$(CSC) /r:System.Web /target:library $<
all: tabcontrol.dll tabcontrol2.dll
tabcontrol.dll: tabcontrol.cs
tabcontrol2.dll: tabcontrol2.cs
clean:
rm -f *.dll *~ *.pdb