Skip to content

Commit

Permalink
fixing setExecutable
Browse files Browse the repository at this point in the history
  • Loading branch information
moschel committed Apr 27, 2011
1 parent 766d52d commit 9ad4d8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion make.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load('steal/rhino/steal.js');

steal.File('steal/js').copyTo('js').setExecutable()
steal.File('steal/js').copyTo('js')
steal.File('js').setExecutable()
steal.File('steal/js.bat').copyTo('js.bat')
8 changes: 7 additions & 1 deletion rhino/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,15 @@
copy(newMe, newYou)
}
}
return;
return this;
}
copy(me, you)
return this;
},
setExecutable: function(){
var me = new java.io.File(this.path)
me.setExecutable(true);
return this;
},
save: function( src, encoding ) {
var fout = new java.io.FileOutputStream(new java.io.File(this.path));
Expand Down

0 comments on commit 9ad4d8f

Please sign in to comment.