45 # 46 # Listen: Allows you to bind Apache to specific IP addresses and/or 47 # ports, instead of the default. See also the <VirtualHost> 48 # directive. 49 # 50 # Change this to Listen on specific IP addresses as shown below to 51 # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) 52 # 53 #Listen 12.34.56.78:80 54 Listen 90 135 # 136 # ServerName gives the name and port that the server uses to identify itself. 137 # This can often be determined automatically, but we recommend you specify 138 # it explicitly to prevent problems during startup. 139 # 140 # If your host doesn't have a registered DNS name, enter its IP address here. 141 # 142 ServerName localhost:90※80番ポートを他のアプリケーションが使っていないならば、デフォルトの設定でもかまわない
アカウント | 権限ロール |
hana | leader |
taro | developer |
URL指定 | 意味 |
http://www.yahoo.co.jp | 絶対指定 |
/ | プロジェクトトップ |
// | サーバールート |
/wiki/NewPage? | このプロジェクトの Wiki ページ |
ANewPageのようにスペースを入れずに、大文字と小文字で単語の区切りが分かるようにする表記法は、Wikiではリンクになる
= 練習用Wikiページ = [/wiki/Sandbox 練習用ページ]
= level1 = == level2 == === level3 ===
||1-1||1-2||1-3|| ||2-1||2-2||2-3|| ||3-1||3-2||3-3||
Trac の Wiki では、セル結合は出来ない
行頭に半角スペースを二つ入れる
自分を過大評価している人間を侮るな (フランクリン・ルーズベルト)
引用記号(>)を使う
>> このたびはどうもすみませんでした > 済みませんで済むか馬鹿野郎 人が謝っているのに馬鹿野郎とは何だ
{{{ print "Hello World" }}}
----
''斜体'' '''太字''' '''''太字の斜体''''' __下線付き__ ~~取消線付き~~ ^上付き^ ,,下付,, {{{等幅}}} or `等幅`
* xxxx * yyyy * yyyy-1 * yyyy-2 * yyyy-2-1 * yyyy-2-2 * zzzz
1. pppp 1. qqqq a. qqqq-1 a. qqqq-2 a. qqqq-3 1. rrrr
[[Image(URL)]] [[Image(wiki:Sandbox:analog.png)]] // Wikiへの添付ファイル [[Image(ticket:1:attach.png)]] // Ticketへの添付ファイル [[Image(source:/trunk/image/icon.gif]] // SVN内の画像の表示
画像が5個以上あるときには Wiki ではなく、SVN にアップロードして Wiki からリンクを張るのが便利
Eclipse 3.5 Galileo (+Pleiades) の場合
※一発ではうまく動かなかった
java.lang.NoSuchMethodError: org.eclipse.mylyn.internal.tasks.ui.views.TaskListFilteredTree.access$1 (Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree;)V→一度 Pleiades を無効化してタスクビューを表示してから、Pleiades を有効化すると旨く動くようになった
Update the Trac XML-RPC to revision 1950 or laterとか言う的外れの警告が出る。(まぁ、プログラムからは Trac の revision が低すぎるのかネットワークの設定がおかしいのかの区別はつかないけど・・・)
※Eclipse 3.4 Ganimede の場合
ticket or id, summary, reporter, owner, description, type, status, priority, milestone, component, version, resolution, keywords, cc, due_assign, due_close, complete
[inherit] file = C:\TracLight\python\share\trac\conf\trac.ini [project] name = SampleProject [ticket-workflow] accept = new,assigned,accepted,reopened -> accepted accept.name = 着手する accept.operations = set_owner_to_self accept.permissions = TICKET_MODIFY leave = * -> * leave.default = 1 leave.name = 変更しない leave.operations = leave_status reassign = new,assigned,accepted,reopened -> assigned reassign.name = 担当者変更 reassign.operations = set_owner reassign.permissions = TICKET_MODIFY reopen = closed -> reopened reopen.name = 差し戻す reopen.operations = del_resolution reopen.permissions = TICKET_CREATE resolve = new,assigned,accepted,reopened -> closed resolve.name = 解決にする resolve.operations = set_resolution resolve.permissions = TICKET_MODIFY
[ticket-workflow] accept = new,assigned,accepted,reopened -> accepted accept.name = 着手する accept.operations = set_owner_to_self accept.permissions = TICKET_MODIFY leave = * -> * leave.default = 1 leave.name = 変更しない leave.operations = leave_status reassign = new,assigned,accepted,reopened -> assigned reassign.name = 担当者変更 reassign.operations = set_owner reassign.permissions = TICKET_MODIFY reopen = closed,resolved -> reopened reopen.name = 差し戻す reopen.operations = del_resolution reopen.permissions = TICKET_CREATE resolve = new,assigned,accepted,reopened -> resolved resolve.name = 解決にする resolve.operations = set_resolution resolve.permissions = TICKET_MODIFY close = resolved -> closed close.name = 終了にする close.permissions = TICKET_MODIFY
refs #123 | Tracのタイムラインで、SVNのコミットコメントを見るときに、Ticket 123へのリンクとなる |
fixed #123 | SVNコミット時に、一緒に Ticket 123 を修正済み( fixed )にする |
SET TRAC_LIGHT_HOME=C:\TracLight if not DEFINED TL_PROJECT_HOME set TL_PROJECT_HOME=%TRAC_LIGHT_HOME%\projects ::----------------------------- ::Call the TRAC pre-commit hook :: SET REPOS="%1" SET REV=%2 FOR /F "usebackq delims==" %%i IN (`%TRAC_LIGHT_HOME%\python\python.exe -c "import sys,re;r=re.split('\\\\',sys.argv[1]);print r[len(r)-1]" %REPOS%`) DO SET PROJECT=%%i %TRAC_LIGHT_HOME%\bin\bash.exe %TRAC_LIGHT_HOME%/bin/pre-commit.sh "%1" %2" %TL_PROJECT_HOME%" "%PROJECT%"
#!/bin/sh REPOS="$1" TXN="$2" TRAC_LIGHT_HOME="$3" PROJECT="$4" TRAC_ENV="$TRAC_LIGHT_HOME/projects/trac/$PROJECT" LOG=`svnlook log -t "$TXN" "$REPOS"` python.exe $TRAC_LIGHT_HOME/python-lib/trac/contrib/trac-pre-commit-hook "$TRAC_EVN" "$LOG" || exit 1
Installing a service [.hudson] $ C:\TracLight\projects\hudson\.hudson\hudson.exe install WMI.WmiException: AccessDenied
<service> <id>hudson</id> <name>Hudson</name> <description>This service runs Hudson continuous integration system.</description> <env name="HUDSON_HOME" value="%BASE%"/> <!-- if you'd like to run Hudson with a specific version of Java, specify a full path to java.exe. The following value assumes that you have java in your PATH. --> <executable>C:\Program Files\Java\jre6\bin\java.exe</executable> <arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\hudson.war" --prefix=/hudson --ajp13Port=8009 --ajp13ListenAddress=127.0.0.1 --httpListenAddress=127.0.0.1 --httpPort=8010</arguments> <!-- interactive flag causes the empty black Java window to be displayed. I'm still debugging this. <interactive /> --> <logmode>rotate</logmode> </service>
public class ExampleApp {
public int add( final int a, final int b) {
return a+b;
}
public int sub( final int a, final int b) {
return a-b;
}
}
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ExampleAppTest {
@Test
public void testAdd() {
ExampleApp ex = new ExampleApp();
assertEquals(5,ex.add(2, 3));
assertEquals(9,ex.add(5, 4));
}
@Test
public void testSub() {
ExampleApp ex = new ExampleApp();
assertEquals(-1,ex.add(2, 3)); // わざと間違えている。正解は sub(2,3)
assertEquals(1,ex.add(5, 4)); // わざと間違えている。正解は sub(5,4)
}
}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.snail</groupId> <artifactId>HudsonExample</artifactId> <version>0.0.1-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> </dependency> </dependencies> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <docencoding>UTF-8</docencoding> <charset>UTF-8</charset> <encoding>UTF-8</encoding> <bottom> <![CDATA[ Copyright © 2009-2010 SNAIL LTD.AllRights Reserved. ]]> </bottom> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jxr-maven-plugin</artifactId> <configuration> <inputEncoding>UTF-8</inputEncoding> <outputEncoding>UTF-8</outputEncoding> </configuration> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <inputEncoding>UTF-8</inputEncoding> <outputEncoding>UTF-8</outputEncoding> <configLocation>src/conf/checkstyle/my-checks.xml</configLocation> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>surefire-report-maven-plugin</artifactId> <configuration> <inputEncoding>UTF-8</inputEncoding> <outputEncoding>UTF-8</outputEncoding> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>taglist-maven-plugin</artifactId> <configuration> <inputEncoding>UTF-8</inputEncoding> <outputEncoding>UTF-8</outputEncoding> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <configuration> <inputEncoding>UTF-8</inputEncoding> <outputEncoding>UTF-8</outputEncoding> </configuration> </plugin> </plugins> </reporting> <distributionManagement> <site> <id>website</id> <url>file://C:/TracLight/reports/Example</url> </site> </distributionManagement> </project>
赤丸 | ビルド失敗 |
黒丸 | ビルド中止 |
黄丸 | 不合格のテストあり |
青丸 | 全てのテストに合格 |
cd MyProject set MAVEN_OPTS=-Dfile.encoding=utf-8 -Dmaven.test.failure.ignore=true -Xmx640m mvn clean site-deploy
Set objWshShell = CreateObject("WScript.Shell") Set xls = WScript.CreateObject("Excel.Application") xls.Visible = True xls.DisplayAlerts = False xls.Workbooks.Open objWshShell.CurrentDirectory & "\Sample.xls" xls.Application.Run "ThisWorkbook.Macro1" xls.QuitMacroRun?.bat
start MacroRun.vbs
set path=%path%;d:\cygwin\bin bash.exe --login -i -c "/cygdrive/d/build/run.sh"
C:\TracLight\bin>create-project MyProject
Expected fs format between '1' and '3'; found format '4'
C:\TracLight\projects\trac\SampleProject>cd C:\TracLight\projects\trac\SampleProject\db C:\TracLight\projects\trac\SampleProject\db>dir ドライブ C のボリューム ラベルがありません。 ボリューム シリアル番号は E8A2-AB31 です C:\TracLight\projects\trac\SampleProject\db のディレクトリ 2010/03/22 22:55 <DIR> . 2010/03/22 22:55 <DIR> .. 2009/12/20 22:40 522,240 sqlite.21.1261316416.bak 2010/03/22 22:55 535,552 trac.db 2 個のファイル 1,057,792 バイト 2 個のディレクトリ 14,773,288,960 バイトの空き領域 C:\TracLight\projects\trac\SampleProject\db>sqlite3 trac.db vacuum C:\TracLight\projects\trac\SampleProject\db>sqlite3 trac.db reindex C:\TracLight\projects\trac\SampleProject\db>
DavLockDB "C:\TracLight\CollabNetSVN\httpd\DavLock" Alias /doc "C:\TracLight\projects\doc" <Directory "C:\TracLight\projects\doc"> Options Indexes Allow from all Dav On </Directory>