Re: Having trouble with XcodeMigration
Re: Having trouble with XcodeMigration
- Subject: Re: Having trouble with XcodeMigration
- From: Pascal Robert <email@hidden>
- Date: Fri, 17 Oct 2008 10:24:02 -0400
Le 08-10-17 à 10:15, Florijan Stamenkovic a écrit :
On Oct 16, 2008, at 23:13, email@hidden wrote:
I'm finally taking the plunge to leave Xcode behind and migrate our
frameworks and applications to Eclipse. I've installed WOLips, and
I've carefully followed the instructions for Pascal Robert's
XcodeMigration tool (great visual tutorial instructions, btw).
However, when I get to the point of running the tool, the following
results:
Starting the importation process...
java.lang.IllegalArgumentException: /Users/dhoward/EclipseWorkspace/
WOApplicationTemplate/Components does not exist
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:
886)
at
ca
.os.migrations.XCodeToEclipse.cleanupTemplates(XCodeToEclipse.java:
174)
at ca.os.migrations.XCodeToEclipse.main(XCodeToEclipse.java:76)
However, this "Components" directory does exist in that location
and even has two items in it, Main.api and Main.wo. What am I
doing wrong and how do I make it work?
Are you 100% sure of this? Do you have multiple hard drive
partitions? Could it be possible that the code above assumes the
wrong partition? How does the XcodeMigration process obtain that
file reference? I checked out the source of Apache's FileUtils, and
it is very straightforward, I don't see how it could screw up:
I also have a hard time of thinking something can break this. It can
be a permission problem, but beside that I have no idea.
This stuff is called so that any files from the templates in Sources
and Components are removed to make sure they don't get in conflict
with the migrated project. If you remove the Main.* stuff manually
from the templates, you can remove this call in XcodeMigration code.
/**
* Cleans a directory without deleting it.
*
* @param directory directory to clean
* @throws IOException in case cleaning is unsuccessful
*/
public static void cleanDirectory(File directory) throws
IOException {
if (!directory.exists()) {
String message = directory + " does not exist";
throw new IllegalArgumentException(message);
}
...
HTH,
F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-------------------------------------------------------
Pascal Robert
http://www.macti.ca
http://www.linkedin.com/in/macti
Skype: MacTICanada
AIM/iChat : MacTICanada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden