2016.7.20 ADT cocos2dx工程导入格外java
来源:互联网 发布:java try是干什么的 编辑:程序博客网 时间:2024/06/10 20:59
ATD android导入平台下java文件:点击工程->右键选择Build Path->Link Source->弹出界面后点击Browse->选择路径通常是"frameworks/cocos2d-x/cocos/platform/android/java/src"->修改"Folder name"因为src会重名
---------------------------------------------------下面为python拷贝assets代码------------------------------------------------------------------------------------------------------
# !/usr/bin/env python# -*- coding: utf-8 -*-# author: 2016 sleaf.yeimport shutilimport osimport syssys.path.append(os.path.split(os.path.realpath(__file__))[0]+"/../")from common import configdef run(): projPath = r"E:/gitworkspace/code/client/FGame" outputPath = r"E:/gitworkspace/code/client/FGame/frameworks/runtime-src/proj.android/assets" resPath = projPath + "/res" outputResPath = outputPath + "/res" if os.path.exists(outputResPath): print "clean file " + outputResPath shutil.rmtree(outputResPath) else: os.makedirs(outputResPath) print("start copy " + resPath + " to " + outputResPath) for f in os.listdir(resPath): if f.startswith('.') or f.startswith('$'): continue cPath = resPath+"/"+f if os.path.isdir(cPath): shutil.copytree(cPath,outputResPath+"/"+f) elif os.path.isfile(cPath): shutil.copy(cPath,outputResPath) srcPath = projPath + "/src" outputSrcPath = outputPath + "/src" if os.path.exists(outputSrcPath): print "clean file " + outputSrcPath shutil.rmtree(outputSrcPath) else: os.makedirs(outputSrcPath) print("start copy " + srcPath + " to " + outputSrcPath) for f in os.listdir(srcPath): if f.startswith('.') or f.startswith('$'): continue cPath = srcPath+"/"+f if os.path.isdir(cPath): shutil.copytree(cPath,outputSrcPath+"/"+f) elif os.path.isfile(cPath): shutil.copy(cPath,outputSrcPath) shutil.copy(projPath + "/config.json", outputPath) print("copy success")if __name__== "__main__": run() os.system("pause")
0 0
- 2016.7.20 ADT cocos2dx工程导入格外java
- 将cocos2dx导入Android工程
- 将cocos2dx导入Android工程
- 新版ADT导入老工程出现“java.lang.NoClassDefFoundError”的解决办法
- Win7下eclipse ADT调试cocos2dx-lua工程
- Android Studio如何导入和删除ADT工程
- Java工程导入Eclipse
- cocos2dx 3.0怎么导入模板到vs2013/创建新工程
- cocos2dx中导入android-studio工程的相关问题
- android studio导入cocos2dx 3.10的工程问题
- Eclipse导入Java工程导入错误
- eclipse导入Java工程文件
- 【工具】Java工程导入Hibernate
- Java导入工程文件问题
- java web 工程导入导出
- java工程不能导入eclipse
- MyEclipse导入 Java Web工程
- android工程导入ADT缺default.properites、JDK版本和Unknown command crunch等问题小结
- java -- 禁止对象clone
- Linux irq
- 当RecyclerView遇到Inconsistency detected崩溃时
- Kmeans和kmeans++
- FTP命令详解
- 2016.7.20 ADT cocos2dx工程导入格外java
- unity 协成的执行顺序
- js 判断各种数据类型
- SpringMVC
- 为什么要写博客
- 文章标题
- keepalived
- 从0开始一步一步用Laravel5.2集成原生微信支付
- 某些批处理学习