From 978a8ea5019b14718475d59e1688db32da9c9b92 Mon Sep 17 00:00:00 2001 From: Lowe Date: Thu, 30 Aug 2012 21:17:32 +0800 Subject: [PATCH] - [bugfix] set editor enabled when workspace set - [update] default.conf for release - [update] a mistake in README - [update] build.gradle, remove classifier --- README.md | 10 ++++++---- build.gradle | 1 - src/main/java/greed/Greed.java | 1 + src/main/resources/default.conf | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 15d1384..8ca2913 100644 --- a/README.md +++ b/README.md @@ -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)
__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)
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 ------------------- @@ -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), diff --git a/build.gradle b/build.gradle index d93e83e..ced91ae 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,6 @@ dependencies { } jar { - classifier = 'all' from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } diff --git a/src/main/java/greed/Greed.java b/src/main/java/greed/Greed.java index 93be685..186e95d 100644 --- a/src/main/java/greed/Greed.java +++ b/src/main/java/greed/Greed.java @@ -146,6 +146,7 @@ public void generateCode() { return; } + talkingWindow.setEnabled(true); try { setProblem(currentContest, currentProb, currentLang); } diff --git a/src/main/resources/default.conf b/src/main/resources/default.conf index 91fc880..15a5481 100644 --- a/src/main/resources/default.conf +++ b/src/main/resources/default.conf @@ -5,7 +5,7 @@ greed { codeRoot = "." override = false - logLevel = DEBUG + logLevel = OFF logToStderr = true logFolder = Logs @@ -15,7 +15,7 @@ greed { } templates { - pathPattern = "${Contest.Name}/DIV${Contest.Div}-${Problem.Score}" + pathPattern = "${Contest.Name}" fileNamePattern = "${Problem.Name}" cpp {