guns icon indicating copy to clipboard operation
guns copied to clipboard

generateFile在mac环境下报异常

Open leonardocsc opened this issue 8 years ago • 5 comments

generateFile在mac环境下报parentFile.exists()报空指针,经查未添加mac环境判断。添加如下代码即可:PlatformUtil.isLinux() || PlatformUtil.isMac()

leonardocsc avatar Aug 23 '17 12:08 leonardocsc

确实没有考虑mac啊 都是D:\啥的 哈哈

liyang1987jay avatar Aug 27 '17 13:08 liyang1987jay

配置文件用相对路径。

2017-08-27 21:28 GMT+08:00 孤舟烟雨 [email protected]:

确实没有考虑mac啊 都是D:\啥的 哈哈

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abel533/guns/issues/3#issuecomment-325198378, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtHlpJu257tULu2pHchbgRpCqhcipLJks5scW7lgaJpZM4O_8dU .

abel533 avatar Aug 27 '17 13:08 abel533

相对路径?

liyang1987jay avatar Aug 27 '17 13:08 liyang1987jay

contextConfig.setProjectPath("D:\tmp\guns"); 这个地方怎么改呢

liyang1987jay avatar Aug 27 '17 13:08 liyang1987jay

如果能结合generator 生成bean就好了

liyang1987jay avatar Aug 27 '17 13:08 liyang1987jay