Artykuły
Ilość wyświetleń: 572 « powrót
@echo off alias C:\www C:\Inetpub\wwwroot type \www\project\svn\info_head.inc > \www\project\svn\info.xml svn info file:///x:/svnrep/projekt1 --xml --incremental >> \www\project\svn\info.xml svn info file:///x:/svnrep/projekt2 --xml --incremental >> \www\project\svn\info.xml svn info file:///x:/svnrep/projekt3 --xml --incremental >> \www\project\svn\info.xml svn info file:///x:/svnrep/projekt4 --xml --incremental >> \www\project\svn\info.xml setlocal set _user=svnuser set _pass=svnpadd svn info https://svn.host.pl/project5/ --username %_user% --password %_pass% --xml --incremental >> \www\project\svn\info.xml endlocal type \www\project\svn\info_foot.inc >> \www\project\svn\info.xml
[info_head.inc] <?xml version="1.0" encoding="utf-8"?> <info> [info_foot.inc] </info>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
<html>
<head>
<title>SVN Repository</title>
<link rel="stylesheet" type="text/css" href="svn.css" />
<link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" type="text/css" href="svn.css" />
</head>
<body>
<h1>SVN Repository </h1>
<a href="../index.htm">
<xsl:text>«</xsl:text> Back to projects home page
</a>
<br /><br />
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<th width="200">Project name</th>
<th width="50">Revision</th>
<th width="100">Updated date</th>
<th width="300">Repository url</th>
<th width="60"> </th>
<th width="60"> </th>
<th width="120"> </th>
</tr>
<xsl:for-each select="info/entry">
<xsl:sort select="commit/date" order="descending"/>
<tr><td>
<b><xsl:value-of select="@path"/></b>
</td>
<td>
<xsl:value-of select="commit/@revision"/>
</td>
<td>
<xsl:value-of select="substring(commit/date, 1, 10)"/>
</td>
<td>
<xsl:value-of select="url"/>
</td>
<td>
<a><xsl:attribute name="href">
<xsl:value-of select="concat(@path, '_status.htm')"/></xsl:attribute>
Status
</a>
</td>
<td>
<a><xsl:attribute name="href">
<xsl:value-of select="concat(@path, '.htm')"/></xsl:attribute>
Log
</a>
</td>
<td>
<a><xsl:attribute name="href">
<xsl:value-of select="concat(@path, '_cloc.htm')"/></xsl:attribute>
Code statistics
</a>
</td>
</tr>
</xsl:for-each>
</table>
<p class="foot" align="center">
(c) Chinasoft 2009 http://www.chinasoft.com.pl
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
msxsl \www\project\svn\info.xml \www\project\svn\info.xsl > \www\project\svn\svninfo.htm
Wygląd mojej strony z informacjami o repozytorium
body
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
h1
{
margin-top: 10px;
margin-bottom: 10px;
font-size: 16px;
background-color: #FFEFD4;
padding: 10px;
border-top: 3px solid #A0684F;
border-bottom: 3px solid #A0684F;
}
a
{
color: #493534;
font-weight: bold;
text-decoration: none;
}
a:hover
{
text-decoration: underline;
}
.caption
{
height: 28px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
text-align: left;
background-color: #5F3E35;
color: #fff;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 25px;
padding-right: 25px;
}
th
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
text-align: left;
color: #fff;
background-color: #A0684F;
border-bottom: 1px solid #fff;
}
td
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
background-color: #FFEFD4;
border-bottom: 1px solid #fff;
vertical-align: top;
}
p.foot
{
border-top: 3px solid #A0684F;
padding-top: 10px;
color: #888;
}