namespace :ae do
desc "Copies the ActiveExt javascripts, images and css to public. HINT: use rake ae:symlink if you are unix based systems"
task :copy_assets do
puts "1. Creating /public/assets/activeext if it doesn't exist"
FileUtils.mkdir_p(RAILS_ROOT + '/public/assets/activeext')
ae_public_directory = RAILS_ROOT + '/public/assets/activeext'
ae_plugin_dir = File.join(File.dirname(__FILE__), '..')
ae_vendor_assets_files = Dir[ae_plugin_dir + '/public/assets/activeext/*']
puts "2. Copying JS, CSS and images to " + ae_public_directory
FileUtils.cp_r(ae_vendor_assets_files, ae_public_directory)
puts "3. Creating a /config/activeext directory if it doesn't exist"
FileUtils.mkdir_p(RAILS_ROOT + '/config/activeext')
end
end
分享到:
相关推荐
Allows you to copy files to the clipboard just like Explorer
易语言模块copy_dir.rar 易语言模块copy_dir.rar 易语言模块copy_dir.rar 易语言模块copy_dir.rar 易语言模块copy_dir.rar 易语言模块copy_dir.rar
前端开源库-swint-copy-dirswint copy dir,为swint任务包装的目录复制函数
图解__arch_copy_from_user函数,可以很清楚的数据的拷贝过程。
单个exe运行程序版本:基于Qt 编写的多规则文件拷贝工具。保存历史记录等实用功能.
复制文件 轻松复制文件安装npm install copyfiles -g命令行 Usage: copyfiles [options] inFile [more files ...] outDirectory Options: -u, --up slice a path off the bottom of the paths [number] -a, --all ...
简单的linux驱动,copy_to_user, copy_from_user 测试
Having several windows pointing to different locations on your hard drive makes it much easier to move or copy data from one folder to another, and also makes browsing faster. Q-Dir supports ...
right click mouse button on them, and select "Copy Path", the absolute path of all selected files (directories) will be present int the system's clipboard, you can then paste them to any text editor ...
基于ARM 构架的copy_from_user与copy_to_user详细分析.doc
使用交叉编译器3.4.1,编译之后,根据超级终端的设备号mknod节点
* static copy() method that other programs can use to copy files. **/ public class FileCopy { /** The main() method of the standalone program. Calls copy(). */ public static void main(String[] ...
将Unity文件拷贝到指定的路径,拷贝的文件需要加上文件的后缀名,不然会失败。主要用于将StreamingAssets文件拷贝到persistentDataPath路径下。
Kernel module for testing copy_to from_user infrastructure.
在vc6.0下调试通过,使用api函数实现文件夹的深层次拷贝,实现原理是递归拷贝。
<br>It can copy/delete unicode and over MAX_PATH(260byte) pathname files. <br>Automatically, after whether the copy origin and copy destinations are HDD according to same physical HDD or is ...
Copy multiple files using ListBox. Must see.
前端开源库-copy-files复制文件,流文件复制器
Copy files frome different folders to different folders, if the file is older than 100 days. If target file exists, overwrite it. example3: ycopy.exe -s=C:\Users\Yun Liu\Desk*\test\UpdateTemp\2010...
Efficient data transfer through zero copy 1、The read() call ... Independently and asynchronously, a fourth copy happens as the DMA engine passes the data from the kernel buffer to the protocol engine.