-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3465563
commit c9e242e
Showing
27 changed files
with
160 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/scripts | ||
/lib | ||
/.settings | ||
/plugin.xml | ||
/grails-elfinder-connector-*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#Grails Metadata file | ||
#Tue Aug 06 16:47:22 IST 2013 | ||
app.grails.version=2.2.4 | ||
app.name=elfinder-connector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
grails.project.class.dir = "target/classes" | ||
grails.project.test.class.dir = "target/test-classes" | ||
grails.project.test.reports.dir = "target/test-reports" | ||
grails.project.work.dir = 'target' | ||
|
||
grails.project.dependency.resolution = { | ||
inherits("global") { | ||
} | ||
log "warn" | ||
legacyResolve false | ||
|
||
inherits 'global' | ||
log 'warn' | ||
|
||
repositories { | ||
grailsCentral() | ||
mavenCentral() | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
test("org.spockframework:spock-grails-support:0.7-groovy-2.0") { export = false } | ||
compile "commons-io:commons-io:2.4" | ||
} | ||
|
||
plugins { | ||
build(":tomcat:$grailsVersion", ":release:2.2.1", ":rest-client-builder:1.0.3") { export = false } | ||
build(":release:2.2.1", ":rest-client-builder:1.0.3") { export = false } | ||
test(":spock:latest.integration") { export = false } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
log4j = { | ||
appenders { | ||
console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') | ||
} | ||
error 'org.codehaus.groovy.grails.web.servlet', // controllers | ||
'org.codehaus.groovy.grails.web.pages', // GSP | ||
'org.codehaus.groovy.grails.web.sitemesh', // layouts | ||
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping | ||
'org.codehaus.groovy.grails.web.mapping', // URL mapping | ||
'org.codehaus.groovy.grails.commons', // core / classloading | ||
'org.codehaus.groovy.grails.plugins', // plugins | ||
'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration | ||
'org.springframework', | ||
'org.hibernate', | ||
'net.sf.ehcache.hibernate' | ||
|
||
warn 'org.mortbay.log' | ||
debug 'grails.plugin.elfinder' | ||
appenders { | ||
console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') | ||
} | ||
error 'org.codehaus.groovy.grails', | ||
'org.springframework', | ||
'org.hibernate', | ||
'net.sf.ehcache.hibernate' | ||
debug 'grails.plugin.elfinder' | ||
} | ||
|
||
grails.plugin.elfinder.rootDir = "test/integration/resources" | ||
grails.plugin.elfinder.rootDir = "test/integration/resources" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/groovy/grails/plugin/elfinder/command/ElFinderMkdirCommand.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
src/groovy/grails/plugin/elfinder/command/ElFinderRmCommand.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
package grails.plugin.elfinder.command | ||
|
||
/** | ||
* | ||
* @author Sudhir Nimavat | ||
* | ||
*/ | ||
class ElFinderRmCommand extends ElfinderBaseCommand { | ||
|
||
@Override | ||
void execute() { | ||
List targets = params.list('targets[]') | ||
List targets = params.list('targets[]') | ||
|
||
List removed = [] | ||
targets.each { | ||
removed.addAll(elFinderFileManager.delete(unhash(it))) | ||
} | ||
putResponse("removed",removed ) | ||
} | ||
putResponse("removed", removed) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.