Skip to content

Commit

Permalink
- [bugfix] set editor enabled when workspace set
Browse files Browse the repository at this point in the history
- [update] default.conf for release
- [update] a mistake in README
- [update] build.gradle, remove classifier
  • Loading branch information
zen0wu committed Aug 30, 2012
1 parent d5aea28 commit 978a8ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ Greed is good

Quick start
-----------
1. Open __Topcoder arena__ -> __Login__ -> __Options__ -> __Editor__ -> __Add__
1. Go to [Downloads](https://github.com/shivawu/topcoder-greed/downloads), and download my latest version

2. Open __Topcoder arena__ -> __Login__ -> __Options__ -> __Editor__ -> __Add__
![Add greed](https://github.com/shivawu/topcoder-greed/wiki/Add-Plugin.png)<br/>
__OK__! Remember to check __Default__ and __At startup__.

2. Select me, click __Configure__.
3. Select me, click __Configure__.
![Configure greed](https://github.com/shivawu/topcoder-greed/wiki/Set-Workspace.png)<br/>
Fill in your workspace full path.

3. All set! Go get your rating! Let me worry about the rest crap.
4. All set! Go get your rating! Let me worry about the rest crap.

Go rock with config
-------------------
Expand All @@ -45,7 +47,7 @@ Change where I store your code, via `greed.codeRoot = ???`, this path is relativ

This tells me where I generate and fetch your code, for different contest and problem.

The default is `${Problem.Name}.cpp/java` in `${Contest.Name}/${Problem.Name}`. Take `TableSeating` in `SRM 249 DIV 1`, you can find your code in `workspace/code root/SRM 249/TableSeating.cpp`.
The default is `${Problem.Name}.cpp/java` in `${Contest.Name}`. Take `TableSeating` in `SRM 249 DIV 1`, you can find your code in `workspace/code root/SRM 249/TableSeating.cpp`.

This is especially useful for Java developers, since Java resolves packages by folder structure.
You can declare your package in your code template(described below),
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dependencies {
}

jar {
classifier = 'all'
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/greed/Greed.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public void generateCode() {
return;
}

talkingWindow.setEnabled(true);
try {
setProblem(currentContest, currentProb, currentLang);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ greed {

codeRoot = "."
override = false
logLevel = DEBUG
logLevel = OFF
logToStderr = true
logFolder = Logs

Expand All @@ -15,7 +15,7 @@ greed {
}

templates {
pathPattern = "${Contest.Name}/DIV${Contest.Div}-${Problem.Score}"
pathPattern = "${Contest.Name}"
fileNamePattern = "${Problem.Name}"

cpp {
Expand Down

0 comments on commit 978a8ea

Please sign in to comment.