mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Introjucer work. Improved command line tokenisation in OSX.
This commit is contained in:
parent
81da96f1a2
commit
f04875879e
29 changed files with 355 additions and 205 deletions
|
|
@ -25,9 +25,8 @@
|
|||
|
||||
#include "jucer_Project.h"
|
||||
#include "jucer_ProjectType.h"
|
||||
#include "jucer_ProjectExporter.h"
|
||||
#include "jucer_ResourceFile.h"
|
||||
#include "jucer_ProjectSaver.h"
|
||||
#include "../Project Saving/jucer_ProjectExporter.h"
|
||||
#include "../Project Saving/jucer_ProjectSaver.h"
|
||||
#include "../Application/jucer_OpenDocumentManager.h"
|
||||
|
||||
|
||||
|
|
@ -1136,36 +1135,3 @@ String Project::getFileTemplate (const String& templateName)
|
|||
|
||||
return String::fromUTF8 (data, dataSize);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void Project::resaveJucerFile (const File& file)
|
||||
{
|
||||
if (! file.exists())
|
||||
{
|
||||
std::cout << "The file " << file.getFullPathName() << " doesn't exist!" << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (! file.hasFileExtension (Project::projectFileExtension))
|
||||
{
|
||||
std::cout << file.getFullPathName() << " isn't a valid jucer project file!" << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
Project newDoc (file);
|
||||
|
||||
if (! newDoc.loadFrom (file, true))
|
||||
{
|
||||
std::cout << "Failed to load the project file: " << file.getFullPathName() << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
std::cout << "The Introjucer - Re-saving file: " << file.getFullPathName() << std::endl;
|
||||
String error (newDoc.saveDocument (file));
|
||||
|
||||
if (error.isNotEmpty())
|
||||
{
|
||||
std::cout << "Error when writing project: " << error << std::endl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue