From 427f5759268d3a084b8a154f5c6f7452394451d5 Mon Sep 17 00:00:00 2001 From: enquora Date: Wed, 9 Sep 2026 01:29:13 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20cappucci?= =?UTF-8?q?no/cappuccino@f56855010faaf01b10a4c9181e567d4b40417f9f=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Resources/ArrayController1/Jakefile | 94 ---- .../Jakefile | 38 +- .../ArrayControllerRemovingFirstTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 Resources/ArrayControllerTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/AttachedSheet2/Jakefile | 93 ---- .../xcode/TestSheet.xcodeproj/project.pbxproj | 304 ----------- .../contents.xcworkspacedata | 7 - .../AppController.j | 0 .../Info.plist | 0 Resources/AttachedSheet2Test/Jakefile | 93 ++++ .../MainMenu.cib | 0 .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/Window.cib | 0 .../Resources/Window.xib | 0 .../Resources/spinner.gif | Bin .../SheetWindowController.j | 0 .../Window.cib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../xcode/TestSheet/AppDelegate.h | 0 .../xcode/TestSheet/AppDelegate.m | 0 .../xcode/TestSheet/SheetWindow.h | 0 .../xcode/TestSheet/SheetWindow.m | 0 .../xcode/TestSheet/SheetWindowController.h | 0 .../xcode/TestSheet/SheetWindowController.m | 0 .../xcode/TestSheet/TestSheet-Info.plist | 0 .../xcode/TestSheet/TestSheet-Prefix.pch | 0 .../xcode/TestSheet/en.lproj/Credits.rtf | 0 .../TestSheet/en.lproj/InfoPlist.strings | 0 .../xcode/TestSheet/main.m | 0 .../AppController.j | 0 .../Info.plist | 0 .../Resources/CPImageNameColorPanel.png | Bin .../Resources/New.png | Bin .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 38 +- .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CGCanvasContext/Jakefile | 93 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CGCanvasContextTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CGPath/Jakefile | 98 ---- .../{CGPath => CGPathTest}/AppController.j | 0 Resources/{CGPath => CGPathTest}/Info.plist | 0 Resources/CGPathTest/Jakefile | 98 ++++ .../Resources/spinner.gif | Bin .../{CGPath => CGPathTest}/index-debug.html | 0 Resources/{CGPath => CGPathTest}/index.html | 0 Resources/{CGPath => CGPathTest}/main.j | 0 Resources/CPAlertTest/Jakefile | 38 +- .../Jakefile | 38 +- Resources/CPAnimationContextTest/Jakefile | 60 +-- Resources/CPAnimationTest/Jakefile | 60 +-- Resources/CPBinder-echo-bug/Jakefile | 93 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPBinderEchoBug/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPBoxTest/Jakefile | 38 +- Resources/CPBrowserTest/Jakefile | 32 +- Resources/CPButtonBarTest/Jakefile | 32 +- Resources/CPByteCountFormatter/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPByteCountFormatterTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPCollectionViewNibTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 38 +- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/add1-32.png | Bin .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPColorWellBindings/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPColorWellBindingsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPComboBoxTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 70 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../{CPCursor => CPCursorTest}/Info.plist | 0 Resources/{CPCursor => CPCursorTest}/Jakefile | 20 +- .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../{CPCursor => CPCursorTest}/index.html | 0 Resources/{CPCursor => CPCursorTest}/main.j | 0 Resources/CPDateFormatterTest/Jakefile | 38 +- Resources/CPDatePickerTest/Jakefile | 38 +- Resources/CPDictionaryControllerTest/Jakefile | 38 +- Resources/CPFormatterTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 64 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/cat.jpg | Bin .../Resources/little.png | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../CPImageViewAlignmentScaling/Jakefile | 38 +- Resources/CPImageViewTest/Jakefile | 38 +- Resources/CPImageViewbindingsTest/Jakefile | 38 +- Resources/CPLanguageModelChatbot/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPLanguageModelChatbotTest/Jakefile | 94 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPLevelIndicator/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 Resources/CPLevelIndicatorTest/Jakefile | 94 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPLocalizationTest/Jakefile | 60 +-- Resources/CPMarkdownParser/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPMarkdownParserTest/Jakefile | 94 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPMenuCALayerTest/Jakefile | 38 +- Resources/CPMenuEnabledBindingsTest/Jakefile | 38 +- Resources/CPMenuKeyEquivalents/Jakefile | 93 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPMenuKeyEquivalentsTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPMenuRemoveAllTest/Jakefile | 38 +- .../Jakefile | 38 +- Resources/CPMenuTest/Jakefile | 38 +- Resources/CPOutlineViewCibTest/Jakefile | 38 +- Resources/CPOutlineViewTest/Jakefile | 8 +- .../CPOutlineViewViewBasedCibTest/Jakefile | 38 +- Resources/CPPanelTest/Jakefile | 60 +-- Resources/CPPlatformWindow/Jakefile | 60 +-- Resources/CPPlattformWindowMinSize/Jakefile | 38 +- Resources/CPPopUpButtonBindings/Jakefile | 94 ---- .../AppController.j | 0 .../CPPopUpButton.j | 0 .../Info.plist | 0 Resources/CPPopUpButtonBindingsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPPopUpButtonTest/Jakefile | 38 +- Resources/CPPopover/Jakefile | 94 ---- .../AppController.j | 0 .../{CPPopover => CPPopoverTest}/Info.plist | 0 Resources/CPPopoverTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../{CPPopover => CPPopoverTest}/index.html | 0 Resources/{CPPopover => CPPopoverTest}/main.j | 0 Resources/CPPredicateEditorCibTest/Jakefile | 38 +- Resources/CPProgressIndicator/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPProgressIndicatorTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../CPPropertyListSerializationTest/Jakefile | 38 +- Resources/CPRadioBindings/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPRadioBindingsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPRuleEditorCibTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 38 +- .../Resources/spinner.gif | Bin .../RuleDelegate.j | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 ...s_Tonio_Desktop_scrollview_AppController.h | 13 - ..._Tonio_Desktop_scrollview__AppController.h | 13 - .../scrollview.xcodeproj/project.pbxproj | 357 ------------- .../contents.xcworkspacedata | 7 - Resources/CPScrollView2/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPScrollView2Test/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/photo.jpg | Bin .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../Resources/photo.jpg | Bin .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../{CPScrollView => CPScrollViewTest}/main.j | 0 Resources/CPSearchField/Jakefile | 94 ---- .../CPSearchFieldPredicateBinding/Jakefile | 54 +- .../AppController.j | 0 .../Info.plist | 0 Resources/CPSearchFieldTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPSegmentedControlBindings/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 .../CPSegmentedControlBindingsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPSegmentedControlTest/Jakefile | 38 +- Resources/CPSoundTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 70 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPSplitViewTest/Jakefile | 38 +- Resources/CPStepperBindings/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPStepperBindingsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPStepperNibTest/Jakefile | 38 +- Resources/CPTabView2/Jakefile | 93 ---- .../AppController.j | 0 .../{CPTabView2 => CPTabView2Test}/Info.plist | 0 Resources/CPTabView2Test/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../{CPTabView2 => CPTabView2Test}/index.html | 0 .../{CPTabView2 => CPTabView2Test}/main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 70 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPTabViewNib/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPTabViewNibTest/Jakefile | 94 ++++ .../Resources/CollectionViewItem.cib | 0 .../Resources/CollectionViewItem.xib | 0 .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/TabViewItem.cib | 0 .../Resources/TabViewItem.xib | 0 .../Resources/spinner.gif | Bin .../TabViewController.j | 0 .../index-debug.html | 0 .../index.html | 0 .../{CPTabViewNib => CPTabViewNibTest}/main.j | 0 Resources/CPTableViewGroupRows/Jakefile | 93 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPTableViewGroupRowsTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPTextField/Jakefile | 93 ---- .../CPTextFieldEditingStyleTest/Jakefile | 60 +-- Resources/CPTextFieldMovementsTest/Jakefile | 60 +-- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 70 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 Resources/CPTextFieldTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../{CPTextField => CPTextFieldTest}/main.j | 0 Resources/CPTextView/Jakefile | 94 ---- Resources/CPTextViewCibTest/Jakefile | 60 +-- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 64 +-- .../NotificationStatistics.j | 0 .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPTimeZone/Jakefile | 93 ---- .../AppController.j | 0 .../{CPTimeZone => CPTimeZoneTest}/Info.plist | 0 Resources/CPTimeZoneTest/Jakefile | 93 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../{CPTimeZone => CPTimeZoneTest}/index.html | 0 .../{CPTimeZone => CPTimeZoneTest}/main.j | 0 Resources/CPTokenFieldTest/Jakefile | 38 +- Resources/CPToolTip/Jakefile | 93 ---- .../AppController.j | 0 .../{CPToolTip => CPToolTipTest}/Info.plist | 0 Resources/CPToolTipTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../Resources/test.png | Bin .../index-debug.html | 0 .../{CPToolTip => CPToolTipTest}/index.html | 0 Resources/{CPToolTip => CPToolTipTest}/main.j | 0 Resources/CPToolbarTest/Jakefile | 38 +- Resources/CPTreeControllerTest/Jakefile | 38 +- Resources/CPURLConnectionAsyncTest/Jakefile | 38 +- .../CPURLConnectionSynchronousTest/Jakefile | 38 +- Resources/CPUserDefaults/Jakefile | 93 ---- .../CPUserDefaultsControllerTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 Resources/CPUserDefaultsTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPUserNotificationTest/Jakefile | 60 +-- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 70 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/ViewController.cib | 0 .../Resources/ViewController.xib | 0 .../Resources/ViewController2.cib | 0 .../Resources/ViewController2.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/CPVisualEffectViewTest/Jakefile | 60 +-- Resources/CPWebViewTest/Jakefile | 38 +- Resources/CPWebViewTest2/Jakefile | 38 +- Resources/CPWindowLiveResizeTest/Jakefile | 54 +- Resources/CPWindowMovableTest/Jakefile | 38 +- Resources/CPWindowResizeStyle/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/CPWindowResizeStyleTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../ChildWindows.xcodeproj/project.pbxproj | 500 ------------------ .../contents.xcworkspacedata | 7 - Resources/ChildWindows/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/ChildWindowsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../{ChildWindows => ChildWindowsTest}/main.j | 0 .../ContinuouslyUpdatesValueBinding/Jakefile | 38 +- Resources/CopyAndPaste/Jakefile | 98 ---- .../AppController.j | 0 .../CollectionViewItem.j | 0 .../Info.plist | 0 Resources/CopyAndPasteTest/Jakefile | 98 ++++ .../Resources/2952609526_9fd245dfcd_q.jpg | Bin .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../{CopyAndPaste => CopyAndPasteTest}/main.j | 0 Resources/CrossOriginTest/Jakefile | 60 +-- Resources/FF4096Test/Jakefile | 38 +- Resources/FontEnhancementTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/KeyEquivalents/Jakefile | 93 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/KeyEquivalentsTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/KeyViewLoopTest/Jakefile | 38 +- .../Jakefile | 54 +- Resources/LayoutTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 Resources/LoadDynamicFrameworksTest/Jakefile | 94 ++++ .../CPProgressIndicatorBarBarRegular0.png | Bin .../CPProgressIndicatorBarBarRegular1.png | Bin .../CPProgressIndicatorBarBarRegular2.png | Bin .../Resources/LoginWindowBackground.png | Bin .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/ProgressBarBezel.png | Bin .../Resources/StartButton.png | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/LoadTimeTest/Jakefile | 8 +- Resources/LongBindings/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/LongBindingsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../{LongBindings => LongBindingsTest}/main.j | 0 Resources/MobileTest/Jakefile | 54 +- Resources/MultipleValueBindings/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/MultipleValueBindingsTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../Transformers.j | 0 .../View.cib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/NSBoxTest/Jakefile | 38 +- Resources/NSBrowserTest/Jakefile | 38 +- Resources/NewTextFieldBezel/Jakefile | 93 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/NewTextFieldBezelTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/Nib2CibAlignment/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/Nib2CibAlignmentTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../Nib2CibBaselineAlignementTest/Jakefile | 38 +- Resources/Nib2CibSubviewsOrderTest/Jakefile | 54 +- .../NibAppRemixed.xcodeproj/project.pbxproj | 357 ------------- ...Tests_Manual_NibAppRemixed_AppController.h | 7 - Resources/NibAppRemixed/Jakefile | 94 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/NibAppRemixedTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/PatternFillTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/PopUpButtonEscTest/Jakefile | 40 +- .../AppController.j | 0 .../Info.plist | 0 Resources/PredicateWithFormatTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../{ScalingTest2 => Scaling2Test}/Info.plist | 0 .../{ScalingTest2 => Scaling2Test}/Jakefile | 64 +-- .../PagePreviewController.j | 0 .../{ScalingTest2 => Scaling2Test}/README.txt | 0 .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/WidgetsLayout.cib | 0 .../Resources/WidgetsLayout.xib | 0 .../WidgetsLayout.j | 0 .../index-debug.html | 0 .../{ScalingTest2 => Scaling2Test}/index.html | 0 .../{ScalingTest2 => Scaling2Test}/main.j | 0 Resources/ScalingTest/Jakefile | 40 +- Resources/ScrollviewTheming/Jakefile | 94 ---- .../AppController.j | 0 .../DocumentView.j | 0 .../Info.plist | 0 Resources/ScrollviewThemingTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 Resources/SizeToFitTest/Jakefile | 93 ++++ .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../{sizeToFitFix => SizeToFitTest}/main.j | 0 Resources/SmartFoldersDemo/Jakefile | 94 ---- .../AppController.j | 0 .../BadgedOutlineView.j | 0 .../ImageAndTextView.j | 0 .../Info.plist | 0 Resources/SmartFoldersTest/Jakefile | 94 ++++ .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/PredicateEditor.cib | 0 .../Resources/PredicateEditor.xib | 0 .../Resources/SmartFolder.png | Bin .../Resources/searchBarBlue.png | Bin .../Resources/spinner.gif | Bin .../Resources/tableArray.plist | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../Resources/spinner.gif | Bin .../SCMultiLineLabel.j | 0 .../SCString.j | 0 .../index-debug.html | 0 .../index.html | 0 .../{ThemeBrowser => ThemeBrowserTest}/main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 70 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 70 +-- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../{TrackingArea => TrackingAreaTest}/main.j | 0 Resources/UndoRedoWithMenuUpdate/Jakefile | 93 ---- .../AppController.j | 0 .../Info.plist | 0 Resources/UndoRedoWithMenuUpdateTest/Jakefile | 93 ++++ .../Resources/MainMenu.cib | 0 .../Resources/spinner.gif | Bin .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/UserlandNSTest/Jakefile | 38 +- .../AppController.j | 0 .../Info.plist | 0 .../Jakefile | 54 +- .../Resources/MainMenu.cib | 0 .../Resources/MainMenu.xib | 0 .../index-debug.html | 0 .../index.html | 0 .../main.j | 0 Resources/layoutEphemeralSubviewTest/Jakefile | 50 +- Resources/loadDynamicFrameworks/Jakefile | 94 ---- Resources/performKeyEquivalentTest/Jakefile | 38 +- Resources/predicateWithFormat/Jakefile | 94 ---- Resources/recipes.txt | 296 +++++------ .../Jakefile | 94 ---- Resources/sizeToFitFix/Jakefile | 93 ---- 693 files changed, 6064 insertions(+), 7636 deletions(-) delete mode 100644 Resources/ArrayController1/Jakefile rename Resources/{ArrayController1 => ArrayControllerTest}/AppController.j (100%) rename Resources/{ArrayController1 => ArrayControllerTest}/Info.plist (100%) create mode 100644 Resources/ArrayControllerTest/Jakefile rename Resources/{ArrayController1 => ArrayControllerTest}/Resources/MainMenu.cib (100%) rename Resources/{ArrayController1 => ArrayControllerTest}/Resources/MainMenu.xib (100%) rename Resources/{ArrayController1 => ArrayControllerTest}/Resources/spinner.gif (100%) rename Resources/{ArrayController1 => ArrayControllerTest}/index-debug.html (100%) rename Resources/{ArrayController1 => ArrayControllerTest}/index.html (100%) rename Resources/{ArrayController1 => ArrayControllerTest}/main.j (100%) delete mode 100644 Resources/AttachedSheet2/Jakefile delete mode 100644 Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.pbxproj delete mode 100644 Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename Resources/{AttachedSheet2 => AttachedSheet2Test}/AppController.j (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/Info.plist (100%) create mode 100644 Resources/AttachedSheet2Test/Jakefile rename Resources/{AttachedSheet2 => AttachedSheet2Test}/MainMenu.cib (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/Resources/MainMenu.cib (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/Resources/MainMenu.xib (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/Resources/Window.cib (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/Resources/Window.xib (100%) rename Resources/{AttachedSheet => AttachedSheet2Test}/Resources/spinner.gif (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/SheetWindowController.j (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/Window.cib (100%) rename Resources/{AttachedSheet => AttachedSheet2Test}/index-debug.html (100%) rename Resources/{AttachedSheet => AttachedSheet2Test}/index.html (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/main.j (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/AppDelegate.h (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/AppDelegate.m (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/SheetWindow.h (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/SheetWindow.m (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/SheetWindowController.h (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/SheetWindowController.m (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/TestSheet-Info.plist (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/TestSheet-Prefix.pch (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/en.lproj/Credits.rtf (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/en.lproj/InfoPlist.strings (100%) rename Resources/{AttachedSheet2 => AttachedSheet2Test}/xcode/TestSheet/main.m (100%) rename Resources/{AttachedSheet => AttachedSheetTest}/AppController.j (100%) rename Resources/{AttachedSheet => AttachedSheetTest}/Info.plist (100%) rename Resources/{AttachedSheet => AttachedSheetTest}/Resources/CPImageNameColorPanel.png (100%) rename Resources/{AttachedSheet => AttachedSheetTest}/Resources/New.png (100%) rename Resources/{AttachedSheet2 => AttachedSheetTest}/Resources/spinner.gif (100%) rename Resources/{AttachedSheet2 => AttachedSheetTest}/index-debug.html (100%) rename Resources/{AttachedSheet2 => AttachedSheetTest}/index.html (100%) rename Resources/{AttachedSheet => AttachedSheetTest}/main.j (100%) rename Resources/{Bindings => BindingContentArrayTest}/AppController.j (100%) rename Resources/{Bindings => BindingContentArrayTest}/Info.plist (100%) rename Resources/{Bindings => BindingContentArrayTest}/Jakefile (50%) rename Resources/{Bindings => BindingContentArrayTest}/Resources/spinner.gif (100%) rename Resources/{Bindings => BindingContentArrayTest}/index-debug.html (100%) rename Resources/{Bindings => BindingContentArrayTest}/index.html (100%) rename Resources/{Bindings => BindingContentArrayTest}/main.j (100%) delete mode 100644 Resources/CGCanvasContext/Jakefile rename Resources/{CGCanvasContext => CGCanvasContextTest}/AppController.j (100%) rename Resources/{CGCanvasContext => CGCanvasContextTest}/Info.plist (100%) create mode 100644 Resources/CGCanvasContextTest/Jakefile rename Resources/{CGCanvasContext => CGCanvasContextTest}/Resources/spinner.gif (100%) rename Resources/{CGCanvasContext => CGCanvasContextTest}/index-debug.html (100%) rename Resources/{CGCanvasContext => CGCanvasContextTest}/index.html (100%) rename Resources/{CGCanvasContext => CGCanvasContextTest}/main.j (100%) delete mode 100644 Resources/CGPath/Jakefile rename Resources/{CGPath => CGPathTest}/AppController.j (100%) rename Resources/{CGPath => CGPathTest}/Info.plist (100%) create mode 100644 Resources/CGPathTest/Jakefile rename Resources/{CGPath => CGPathTest}/Resources/spinner.gif (100%) rename Resources/{CGPath => CGPathTest}/index-debug.html (100%) rename Resources/{CGPath => CGPathTest}/index.html (100%) rename Resources/{CGPath => CGPathTest}/main.j (100%) delete mode 100644 Resources/CPBinder-echo-bug/Jakefile rename Resources/{CPBinder-echo-bug => CPBinderEchoBug}/AppController.j (100%) rename Resources/{CPBinder-echo-bug => CPBinderEchoBug}/Info.plist (100%) create mode 100644 Resources/CPBinderEchoBug/Jakefile rename Resources/{CPBinder-echo-bug => CPBinderEchoBug}/Resources/spinner.gif (100%) rename Resources/{CPBinder-echo-bug => CPBinderEchoBug}/index-debug.html (100%) rename Resources/{CPBinder-echo-bug => CPBinderEchoBug}/index.html (100%) rename Resources/{CPBinder-echo-bug => CPBinderEchoBug}/main.j (100%) delete mode 100644 Resources/CPByteCountFormatter/Jakefile rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/AppController.j (100%) rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/Info.plist (100%) create mode 100644 Resources/CPByteCountFormatterTest/Jakefile rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/Resources/MainMenu.cib (100%) rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/Resources/MainMenu.xib (100%) rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/Resources/spinner.gif (100%) rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/index-debug.html (100%) rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/index.html (100%) rename Resources/{CPByteCountFormatter => CPByteCountFormatterTest}/main.j (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/AppController.j (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/Info.plist (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/Jakefile (53%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/Resources/MainMenu.cib (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/Resources/MainMenu.xib (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/Resources/add1-32.png (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/Resources/spinner.gif (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/index-debug.html (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/index.html (100%) rename Resources/{CPColor-CPImage-description => CPColorCPImageDescriptionTest}/main.j (100%) delete mode 100644 Resources/CPColorWellBindings/Jakefile rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/AppController.j (100%) rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/Info.plist (100%) create mode 100644 Resources/CPColorWellBindingsTest/Jakefile rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/Resources/spinner.gif (100%) rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/index-debug.html (100%) rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/index.html (100%) rename Resources/{CPColorWellBindings => CPColorWellBindingsTest}/main.j (100%) rename Resources/{CPControlSize => CPControlSizeTest}/AppController.j (100%) rename Resources/{CPControlSize => CPControlSizeTest}/Info.plist (100%) rename Resources/{CPControlSize => CPControlSizeTest}/Jakefile (56%) rename Resources/{CPControlSize => CPControlSizeTest}/Resources/MainMenu.cib (100%) rename Resources/{CPControlSize => CPControlSizeTest}/Resources/MainMenu.xib (100%) rename Resources/{CPControlSize => CPControlSizeTest}/index-debug.html (100%) rename Resources/{CPControlSize => CPControlSizeTest}/index.html (100%) rename Resources/{CPControlSize => CPControlSizeTest}/main.j (100%) rename Resources/{CPCursor => CPCursorTest}/AppController.j (100%) rename Resources/{CPCursor => CPCursorTest}/Info.plist (100%) rename Resources/{CPCursor => CPCursorTest}/Jakefile (58%) rename Resources/{CPCursor => CPCursorTest}/Resources/spinner.gif (100%) rename Resources/{CPCursor => CPCursorTest}/index-debug.html (100%) rename Resources/{CPCursor => CPCursorTest}/index.html (100%) rename Resources/{CPCursor => CPCursorTest}/main.j (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/AppController.j (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/Info.plist (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/Jakefile (59%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/Resources/MainMenu.cib (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/Resources/MainMenu.xib (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/Resources/cat.jpg (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/Resources/little.png (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/index-debug.html (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/index.html (100%) rename Resources/{CPImageAndTextViewImageScaling => CPImageAndTextViewImageScalingTest}/main.j (100%) delete mode 100644 Resources/CPLanguageModelChatbot/Jakefile rename Resources/{CPLanguageModelChatbot => CPLanguageModelChatbotTest}/AppController.j (100%) rename Resources/{CPLanguageModelChatbot => CPLanguageModelChatbotTest}/Info.plist (100%) create mode 100644 Resources/CPLanguageModelChatbotTest/Jakefile rename Resources/{CPLanguageModelChatbot => CPLanguageModelChatbotTest}/Resources/spinner.gif (100%) rename Resources/{CPLanguageModelChatbot => CPLanguageModelChatbotTest}/index-debug.html (100%) rename Resources/{CPLanguageModelChatbot => CPLanguageModelChatbotTest}/index.html (100%) rename Resources/{CPLanguageModelChatbot => CPLanguageModelChatbotTest}/main.j (100%) rename Resources/{CPTextView => CPLevelIndicatorTest}/AppController.j (100%) rename Resources/{CPMarkdownParser => CPLevelIndicatorTest}/Info.plist (100%) create mode 100644 Resources/CPLevelIndicatorTest/Jakefile rename Resources/{CPMarkdownParser => CPLevelIndicatorTest}/Resources/spinner.gif (100%) rename Resources/{CPMarkdownParser => CPLevelIndicatorTest}/index-debug.html (100%) rename Resources/{CPMarkdownParser => CPLevelIndicatorTest}/index.html (100%) rename Resources/{CPTextView => CPLevelIndicatorTest}/main.j (100%) delete mode 100644 Resources/CPMarkdownParser/Jakefile rename Resources/{CPMarkdownParser => CPMarkdownParserTest}/AppController.j (100%) rename Resources/{CPRuleEditorTestI8N => CPMarkdownParserTest}/Info.plist (100%) create mode 100644 Resources/CPMarkdownParserTest/Jakefile rename Resources/{CPMenuKeyEquivalents => CPMarkdownParserTest}/Resources/spinner.gif (100%) rename Resources/{CPTextView => CPMarkdownParserTest}/index-debug.html (100%) rename Resources/{CPTextView => CPMarkdownParserTest}/index.html (100%) rename Resources/{CPMarkdownParser => CPMarkdownParserTest}/main.j (100%) delete mode 100644 Resources/CPMenuKeyEquivalents/Jakefile rename Resources/{CPMenuKeyEquivalents => CPMenuKeyEquivalentsTest}/AppController.j (100%) rename Resources/{CPMenuKeyEquivalents => CPMenuKeyEquivalentsTest}/Info.plist (100%) create mode 100644 Resources/CPMenuKeyEquivalentsTest/Jakefile rename Resources/{CPPopUpButtonBindings => CPMenuKeyEquivalentsTest}/Resources/spinner.gif (100%) rename Resources/{CPMenuKeyEquivalents => CPMenuKeyEquivalentsTest}/index-debug.html (100%) rename Resources/{CPMenuKeyEquivalents => CPMenuKeyEquivalentsTest}/index.html (100%) rename Resources/{CPMenuKeyEquivalents => CPMenuKeyEquivalentsTest}/main.j (100%) delete mode 100644 Resources/CPPopUpButtonBindings/Jakefile rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/AppController.j (100%) rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/CPPopUpButton.j (100%) rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/Info.plist (100%) create mode 100644 Resources/CPPopUpButtonBindingsTest/Jakefile rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{CPPopover => CPPopUpButtonBindingsTest}/Resources/spinner.gif (100%) rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/index-debug.html (100%) rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/index.html (100%) rename Resources/{CPPopUpButtonBindings => CPPopUpButtonBindingsTest}/main.j (100%) delete mode 100644 Resources/CPPopover/Jakefile rename Resources/{CPPopover => CPPopoverTest}/AppController.j (100%) rename Resources/{CPPopover => CPPopoverTest}/Info.plist (100%) create mode 100644 Resources/CPPopoverTest/Jakefile rename Resources/{CPPopover => CPPopoverTest}/Resources/MainMenu.cib (100%) rename Resources/{CPPopover => CPPopoverTest}/Resources/MainMenu.xib (100%) rename Resources/{CPProgressIndicator => CPPopoverTest}/Resources/spinner.gif (100%) rename Resources/{CPPopover => CPPopoverTest}/index-debug.html (100%) rename Resources/{CPPopover => CPPopoverTest}/index.html (100%) rename Resources/{CPPopover => CPPopoverTest}/main.j (100%) delete mode 100644 Resources/CPProgressIndicator/Jakefile rename Resources/{CPProgressIndicator => CPProgressIndicatorTest}/AppController.j (100%) rename Resources/{CPProgressIndicator => CPProgressIndicatorTest}/Info.plist (100%) create mode 100644 Resources/CPProgressIndicatorTest/Jakefile rename Resources/{CPProgressIndicator => CPProgressIndicatorTest}/Resources/MainMenu.cib (100%) rename Resources/{CPProgressIndicator => CPProgressIndicatorTest}/Resources/MainMenu.xib (100%) rename Resources/{CPRadioBindings => CPProgressIndicatorTest}/Resources/spinner.gif (100%) rename Resources/{CPProgressIndicator => CPProgressIndicatorTest}/index-debug.html (100%) rename Resources/{CPProgressIndicator => CPProgressIndicatorTest}/index.html (100%) rename Resources/{CPProgressIndicator => CPProgressIndicatorTest}/main.j (100%) delete mode 100644 Resources/CPRadioBindings/Jakefile rename Resources/{CPRadioBindings => CPRadioBindingsTest}/AppController.j (100%) rename Resources/{CPRadioBindings => CPRadioBindingsTest}/Info.plist (100%) create mode 100644 Resources/CPRadioBindingsTest/Jakefile rename Resources/{CPRadioBindings => CPRadioBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{CPRadioBindings => CPRadioBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{CPRuleEditorTestI8N => CPRadioBindingsTest}/Resources/spinner.gif (100%) rename Resources/{CPRadioBindings => CPRadioBindingsTest}/index-debug.html (100%) rename Resources/{CPRadioBindings => CPRadioBindingsTest}/index.html (100%) rename Resources/{CPRadioBindings => CPRadioBindingsTest}/main.j (100%) rename Resources/{CPRuleEditorTestI8N => CPRuleEditorTest}/AppController.j (100%) rename Resources/{CPTextView => CPRuleEditorTest}/Info.plist (100%) rename Resources/{CPRuleEditorTestI8N => CPRuleEditorTest}/Jakefile (51%) rename Resources/{CPScrollView => CPRuleEditorTest}/Resources/spinner.gif (100%) rename Resources/{CPRuleEditorTestI8N => CPRuleEditorTest}/RuleDelegate.j (100%) rename Resources/{CPRuleEditorTestI8N => CPRuleEditorTest}/index-debug.html (100%) rename Resources/{CPRuleEditorTestI8N => CPRuleEditorTest}/index.html (100%) rename Resources/{CPRuleEditorTestI8N => CPRuleEditorTest}/main.j (100%) delete mode 100644 Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview_AppController.h delete mode 100644 Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview__AppController.h delete mode 100644 Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.pbxproj delete mode 100644 Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Resources/CPScrollView2/Jakefile rename Resources/{CPScrollView2 => CPScrollView2Test}/AppController.j (100%) rename Resources/{CPScrollView2 => CPScrollView2Test}/Info.plist (100%) create mode 100644 Resources/CPScrollView2Test/Jakefile rename Resources/{CPScrollView2 => CPScrollView2Test}/Resources/MainMenu.cib (100%) rename Resources/{CPScrollView2 => CPScrollView2Test}/Resources/MainMenu.xib (100%) rename Resources/{CPScrollView => CPScrollView2Test}/Resources/photo.jpg (100%) rename Resources/{CPScrollView2 => CPScrollView2Test}/Resources/spinner.gif (100%) rename Resources/{CPScrollView => CPScrollView2Test}/index-debug.html (100%) rename Resources/{CPScrollView => CPScrollView2Test}/index.html (100%) rename Resources/{CPScrollView2 => CPScrollView2Test}/main.j (100%) rename Resources/{CPScrollView => CPScrollViewTest}/AppController.j (100%) rename Resources/{CPScrollView => CPScrollViewTest}/Info.plist (100%) rename Resources/{CPScrollView2 => CPScrollViewTest}/Resources/photo.jpg (100%) rename Resources/{CPSearchField => CPScrollViewTest}/Resources/spinner.gif (100%) rename Resources/{CPScrollView2 => CPScrollViewTest}/index-debug.html (100%) rename Resources/{CPScrollView2 => CPScrollViewTest}/index.html (100%) rename Resources/{CPScrollView => CPScrollViewTest}/main.j (100%) delete mode 100644 Resources/CPSearchField/Jakefile rename Resources/{CPSearchField => CPSearchFieldTest}/AppController.j (100%) rename Resources/{CPSearchField => CPSearchFieldTest}/Info.plist (100%) create mode 100644 Resources/CPSearchFieldTest/Jakefile rename Resources/{CPSearchField => CPSearchFieldTest}/Resources/MainMenu.cib (100%) rename Resources/{CPSearchField => CPSearchFieldTest}/Resources/MainMenu.xib (100%) rename Resources/{CPStepperBindings => CPSearchFieldTest}/Resources/spinner.gif (100%) rename Resources/{CPSearchField => CPSearchFieldTest}/index-debug.html (100%) rename Resources/{CPSearchField => CPSearchFieldTest}/index.html (100%) rename Resources/{CPSearchField => CPSearchFieldTest}/main.j (100%) delete mode 100644 Resources/CPSegmentedControlBindings/Jakefile rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/AppController.j (100%) rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/Info.plist (100%) create mode 100644 Resources/CPSegmentedControlBindingsTest/Jakefile rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/Resources/spinner.gif (100%) rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/index-debug.html (100%) rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/index.html (100%) rename Resources/{CPSegmentedControlBindings => CPSegmentedControlBindingsTest}/main.j (100%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/AppController.j (100%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/Info.plist (100%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/Jakefile (56%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/Resources/MainMenu.cib (100%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/Resources/MainMenu.xib (100%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/index-debug.html (100%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/index.html (100%) rename Resources/{CPSplitViewDivider => CPSplitViewDividerTest}/main.j (100%) delete mode 100644 Resources/CPStepperBindings/Jakefile rename Resources/{CPStepperBindings => CPStepperBindingsTest}/AppController.j (100%) rename Resources/{CPStepperBindings => CPStepperBindingsTest}/Info.plist (100%) create mode 100644 Resources/CPStepperBindingsTest/Jakefile rename Resources/{CPStepperBindings => CPStepperBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{CPStepperBindings => CPStepperBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{CPTabView2 => CPStepperBindingsTest}/Resources/spinner.gif (100%) rename Resources/{CPStepperBindings => CPStepperBindingsTest}/index-debug.html (100%) rename Resources/{CPStepperBindings => CPStepperBindingsTest}/index.html (100%) rename Resources/{CPStepperBindings => CPStepperBindingsTest}/main.j (100%) delete mode 100644 Resources/CPTabView2/Jakefile rename Resources/{CPTabView2 => CPTabView2Test}/AppController.j (100%) rename Resources/{CPTabView2 => CPTabView2Test}/Info.plist (100%) create mode 100644 Resources/CPTabView2Test/Jakefile rename Resources/{CPTabViewNib => CPTabView2Test}/Resources/spinner.gif (100%) rename Resources/{CPTabView2 => CPTabView2Test}/index-debug.html (100%) rename Resources/{CPTabView2 => CPTabView2Test}/index.html (100%) rename Resources/{CPTabView2 => CPTabView2Test}/main.j (100%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/AppController.j (100%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/Info.plist (100%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/Jakefile (56%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/index-debug.html (100%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/index.html (100%) rename Resources/{CPTabViewBindings => CPTabViewBindingsTest}/main.j (100%) delete mode 100644 Resources/CPTabViewNib/Jakefile rename Resources/{CPTabViewNib => CPTabViewNibTest}/AppController.j (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/Info.plist (100%) create mode 100644 Resources/CPTabViewNibTest/Jakefile rename Resources/{CPTabViewNib => CPTabViewNibTest}/Resources/CollectionViewItem.cib (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/Resources/CollectionViewItem.xib (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/Resources/MainMenu.cib (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/Resources/MainMenu.xib (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/Resources/TabViewItem.cib (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/Resources/TabViewItem.xib (100%) rename Resources/{CPTableViewGroupRows => CPTabViewNibTest}/Resources/spinner.gif (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/TabViewController.j (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/index-debug.html (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/index.html (100%) rename Resources/{CPTabViewNib => CPTabViewNibTest}/main.j (100%) delete mode 100644 Resources/CPTableViewGroupRows/Jakefile rename Resources/{CPTableViewGroupRows => CPTableViewGroupRowsTest}/AppController.j (100%) rename Resources/{CPTableViewGroupRows => CPTableViewGroupRowsTest}/Info.plist (100%) create mode 100644 Resources/CPTableViewGroupRowsTest/Jakefile rename Resources/{CPTextField => CPTableViewGroupRowsTest}/Resources/spinner.gif (100%) rename Resources/{CPTableViewGroupRows => CPTableViewGroupRowsTest}/index-debug.html (100%) rename Resources/{CPTableViewGroupRows => CPTableViewGroupRowsTest}/index.html (100%) rename Resources/{CPTableViewGroupRows => CPTableViewGroupRowsTest}/main.j (100%) delete mode 100644 Resources/CPTextField/Jakefile rename Resources/{CPTextFieldMultiline => CPTextFieldMultiLineTest}/AppController.j (100%) rename Resources/{CPTextFieldMultiline => CPTextFieldMultiLineTest}/Info.plist (100%) rename Resources/{CPTextFieldMultiline => CPTextFieldMultiLineTest}/Jakefile (56%) rename Resources/{CPTextFieldMultiline => CPTextFieldMultiLineTest}/Resources/MainMenu.cib (100%) rename Resources/{CPTextFieldMultiline => CPTextFieldMultiLineTest}/Resources/MainMenu.xib (100%) rename Resources/{CPTextField => CPTextFieldMultiLineTest}/index-debug.html (100%) rename Resources/{CPTextField => CPTextFieldMultiLineTest}/index.html (100%) rename Resources/{CPTextFieldMultiline => CPTextFieldMultiLineTest}/main.j (100%) rename Resources/{CPTextField => CPTextFieldTest}/AppController.j (100%) rename Resources/{CPTextField => CPTextFieldTest}/Info.plist (100%) create mode 100644 Resources/CPTextFieldTest/Jakefile rename Resources/{CPTextView => CPTextFieldTest}/Resources/spinner.gif (100%) rename Resources/{CPTextFieldMultiline => CPTextFieldTest}/index-debug.html (100%) rename Resources/{CPTextFieldMultiline => CPTextFieldTest}/index.html (100%) rename Resources/{CPTextField => CPTextFieldTest}/main.j (100%) delete mode 100644 Resources/CPTextView/Jakefile rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/AppController.j (100%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/Info.plist (100%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/Jakefile (59%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/NotificationStatistics.j (100%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/Resources/MainMenu.cib (100%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/Resources/MainMenu.xib (100%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/index-debug.html (100%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/index.html (100%) rename Resources/{CPTextViewDelegateAndNotifications => CPTextViewDelegateAndNotificationsTest}/main.j (100%) delete mode 100644 Resources/CPTimeZone/Jakefile rename Resources/{CPTimeZone => CPTimeZoneTest}/AppController.j (100%) rename Resources/{CPTimeZone => CPTimeZoneTest}/Info.plist (100%) create mode 100644 Resources/CPTimeZoneTest/Jakefile rename Resources/{CPTimeZone => CPTimeZoneTest}/Resources/MainMenu.cib (100%) rename Resources/{CPTimeZone => CPTimeZoneTest}/Resources/MainMenu.xib (100%) rename Resources/{CPTimeZone => CPTimeZoneTest}/Resources/spinner.gif (100%) rename Resources/{CPTimeZone => CPTimeZoneTest}/index-debug.html (100%) rename Resources/{CPTimeZone => CPTimeZoneTest}/index.html (100%) rename Resources/{CPTimeZone => CPTimeZoneTest}/main.j (100%) delete mode 100644 Resources/CPToolTip/Jakefile rename Resources/{CPToolTip => CPToolTipTest}/AppController.j (100%) rename Resources/{CPToolTip => CPToolTipTest}/Info.plist (100%) create mode 100644 Resources/CPToolTipTest/Jakefile rename Resources/{CPToolTip => CPToolTipTest}/Resources/spinner.gif (100%) rename Resources/{CPToolTip => CPToolTipTest}/Resources/test.png (100%) rename Resources/{CPToolTip => CPToolTipTest}/index-debug.html (100%) rename Resources/{CPToolTip => CPToolTipTest}/index.html (100%) rename Resources/{CPToolTip => CPToolTipTest}/main.j (100%) delete mode 100644 Resources/CPUserDefaults/Jakefile rename Resources/{CPUserDefaults => CPUserDefaultsTest}/AppController.j (100%) rename Resources/{CPUserDefaults => CPUserDefaultsTest}/Info.plist (100%) create mode 100644 Resources/CPUserDefaultsTest/Jakefile rename Resources/{CPUserDefaults => CPUserDefaultsTest}/Resources/spinner.gif (100%) rename Resources/{CPUserDefaults => CPUserDefaultsTest}/index-debug.html (100%) rename Resources/{CPUserDefaults => CPUserDefaultsTest}/index.html (100%) rename Resources/{CPUserDefaults => CPUserDefaultsTest}/main.j (100%) rename Resources/{CPViewController => CPViewControllerTest}/AppController.j (100%) rename Resources/{CPViewController => CPViewControllerTest}/Info.plist (100%) rename Resources/{CPViewController => CPViewControllerTest}/Jakefile (56%) rename Resources/{CPViewController => CPViewControllerTest}/Resources/MainMenu.cib (100%) rename Resources/{CPViewController => CPViewControllerTest}/Resources/MainMenu.xib (100%) rename Resources/{CPViewController => CPViewControllerTest}/Resources/ViewController.cib (100%) rename Resources/{CPViewController => CPViewControllerTest}/Resources/ViewController.xib (100%) rename Resources/{CPViewController => CPViewControllerTest}/Resources/ViewController2.cib (100%) rename Resources/{CPViewController => CPViewControllerTest}/Resources/ViewController2.xib (100%) rename Resources/{CPViewController => CPViewControllerTest}/index-debug.html (100%) rename Resources/{CPViewController => CPViewControllerTest}/index.html (100%) rename Resources/{CPViewController => CPViewControllerTest}/main.j (100%) delete mode 100644 Resources/CPWindowResizeStyle/Jakefile rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/AppController.j (100%) rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/Info.plist (100%) create mode 100644 Resources/CPWindowResizeStyleTest/Jakefile rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/Resources/MainMenu.cib (100%) rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/Resources/MainMenu.xib (100%) rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/Resources/spinner.gif (100%) rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/index-debug.html (100%) rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/index.html (100%) rename Resources/{CPWindowResizeStyle => CPWindowResizeStyleTest}/main.j (100%) delete mode 100644 Resources/ChildWindows/ChildWindows.xcodeproj/project.pbxproj delete mode 100644 Resources/ChildWindows/ChildWindows.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Resources/ChildWindows/Jakefile rename Resources/{ChildWindows => ChildWindowsTest}/AppController.j (100%) rename Resources/{ChildWindows => ChildWindowsTest}/Info.plist (100%) create mode 100644 Resources/ChildWindowsTest/Jakefile rename Resources/{ChildWindows => ChildWindowsTest}/Resources/MainMenu.cib (100%) rename Resources/{ChildWindows => ChildWindowsTest}/Resources/MainMenu.xib (100%) rename Resources/{ChildWindows => ChildWindowsTest}/Resources/spinner.gif (100%) rename Resources/{ChildWindows => ChildWindowsTest}/index-debug.html (100%) rename Resources/{ChildWindows => ChildWindowsTest}/index.html (100%) rename Resources/{ChildWindows => ChildWindowsTest}/main.j (100%) delete mode 100644 Resources/CopyAndPaste/Jakefile rename Resources/{CopyAndPaste => CopyAndPasteTest}/AppController.j (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/CollectionViewItem.j (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/Info.plist (100%) create mode 100644 Resources/CopyAndPasteTest/Jakefile rename Resources/{CopyAndPaste => CopyAndPasteTest}/Resources/2952609526_9fd245dfcd_q.jpg (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/Resources/MainMenu.cib (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/Resources/MainMenu.xib (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/Resources/spinner.gif (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/index-debug.html (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/index.html (100%) rename Resources/{CopyAndPaste => CopyAndPasteTest}/main.j (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/AppController.j (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/Info.plist (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/Resources/MainMenu.cib (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/Resources/MainMenu.xib (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/Resources/spinner.gif (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/index-debug.html (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/index.html (100%) rename Resources/{FontMetricsExplorer => FontMetricsExplorerTest}/main.j (100%) delete mode 100644 Resources/KeyEquivalents/Jakefile rename Resources/{KeyEquivalents => KeyEquivalentsTest}/AppController.j (100%) rename Resources/{KeyEquivalents => KeyEquivalentsTest}/Info.plist (100%) create mode 100644 Resources/KeyEquivalentsTest/Jakefile rename Resources/{KeyEquivalents => KeyEquivalentsTest}/Resources/spinner.gif (100%) rename Resources/{KeyEquivalents => KeyEquivalentsTest}/index-debug.html (100%) rename Resources/{KeyEquivalents => KeyEquivalentsTest}/index.html (100%) rename Resources/{KeyEquivalents => KeyEquivalentsTest}/main.j (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/AppController.j (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Info.plist (100%) create mode 100644 Resources/LoadDynamicFrameworksTest/Jakefile rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular0.png (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular1.png (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular2.png (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/LoginWindowBackground.png (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/MainMenu.cib (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/MainMenu.xib (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/ProgressBarBezel.png (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/Resources/StartButton.png (100%) rename Resources/{LongBindings => LoadDynamicFrameworksTest}/index-debug.html (100%) rename Resources/{LongBindings => LoadDynamicFrameworksTest}/index.html (100%) rename Resources/{loadDynamicFrameworks => LoadDynamicFrameworksTest}/main.j (100%) delete mode 100644 Resources/LongBindings/Jakefile rename Resources/{LongBindings => LongBindingsTest}/AppController.j (100%) rename Resources/{LongBindings => LongBindingsTest}/Info.plist (100%) create mode 100644 Resources/LongBindingsTest/Jakefile rename Resources/{LongBindings => LongBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{LongBindings => LongBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{LongBindings => LongBindingsTest}/Resources/spinner.gif (100%) rename Resources/{MultipleValueBindings => LongBindingsTest}/index-debug.html (100%) rename Resources/{MultipleValueBindings => LongBindingsTest}/index.html (100%) rename Resources/{LongBindings => LongBindingsTest}/main.j (100%) delete mode 100644 Resources/MultipleValueBindings/Jakefile rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/AppController.j (100%) rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/Info.plist (100%) create mode 100644 Resources/MultipleValueBindingsTest/Jakefile rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/Resources/MainMenu.cib (100%) rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/Resources/MainMenu.xib (100%) rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/Resources/spinner.gif (100%) rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/Transformers.j (100%) rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/View.cib (100%) rename Resources/{NewTextFieldBezel => MultipleValueBindingsTest}/index-debug.html (100%) rename Resources/{NewTextFieldBezel => MultipleValueBindingsTest}/index.html (100%) rename Resources/{MultipleValueBindings => MultipleValueBindingsTest}/main.j (100%) delete mode 100644 Resources/NewTextFieldBezel/Jakefile rename Resources/{NewTextFieldBezel => NewTextFieldBezelTest}/AppController.j (100%) rename Resources/{NewTextFieldBezel => NewTextFieldBezelTest}/Info.plist (100%) create mode 100644 Resources/NewTextFieldBezelTest/Jakefile rename Resources/{NewTextFieldBezel => NewTextFieldBezelTest}/Resources/spinner.gif (100%) rename Resources/{Nib2CibAlignment => NewTextFieldBezelTest}/index-debug.html (100%) rename Resources/{Nib2CibAlignment => NewTextFieldBezelTest}/index.html (100%) rename Resources/{NewTextFieldBezel => NewTextFieldBezelTest}/main.j (100%) delete mode 100644 Resources/Nib2CibAlignment/Jakefile rename Resources/{Nib2CibAlignment => Nib2CibAlignmentTest}/AppController.j (100%) rename Resources/{Nib2CibAlignment => Nib2CibAlignmentTest}/Info.plist (100%) create mode 100644 Resources/Nib2CibAlignmentTest/Jakefile rename Resources/{Nib2CibAlignment => Nib2CibAlignmentTest}/Resources/MainMenu.cib (100%) rename Resources/{Nib2CibAlignment => Nib2CibAlignmentTest}/Resources/MainMenu.xib (100%) rename Resources/{Nib2CibAlignment => Nib2CibAlignmentTest}/Resources/spinner.gif (100%) rename Resources/{NibAppRemixed => Nib2CibAlignmentTest}/index-debug.html (100%) rename Resources/{NibAppRemixed => Nib2CibAlignmentTest}/index.html (100%) rename Resources/{Nib2CibAlignment => Nib2CibAlignmentTest}/main.j (100%) delete mode 100644 Resources/NibAppRemixed/.xCodeSupport/NibAppRemixed.xcodeproj/project.pbxproj delete mode 100644 Resources/NibAppRemixed/.xCodeSupport/Sources/_Users_siker_dev_cappuccino_Tests_Manual_NibAppRemixed_AppController.h delete mode 100644 Resources/NibAppRemixed/Jakefile rename Resources/{NibAppRemixed => NibAppRemixedTest}/AppController.j (100%) rename Resources/{NibAppRemixed => NibAppRemixedTest}/Info.plist (100%) create mode 100644 Resources/NibAppRemixedTest/Jakefile rename Resources/{NibAppRemixed => NibAppRemixedTest}/Resources/MainMenu.cib (100%) rename Resources/{NibAppRemixed => NibAppRemixedTest}/Resources/MainMenu.xib (100%) rename Resources/{NibAppRemixed => NibAppRemixedTest}/Resources/spinner.gif (100%) rename Resources/{PlatformWindows => NibAppRemixedTest}/index-debug.html (100%) rename Resources/{PlatformWindows => NibAppRemixedTest}/index.html (100%) rename Resources/{NibAppRemixed => NibAppRemixedTest}/main.j (100%) rename Resources/{PlatformWindows => PlatformWindowsTest}/AppController.j (100%) rename Resources/{PlatformWindows => PlatformWindowsTest}/Info.plist (100%) rename Resources/{PlatformWindows => PlatformWindowsTest}/Resources/MainMenu.cib (100%) rename Resources/{PlatformWindows => PlatformWindowsTest}/Resources/MainMenu.xib (100%) rename Resources/{PlatformWindows => PlatformWindowsTest}/Resources/spinner.gif (100%) rename Resources/{ScrollviewTheming => PlatformWindowsTest}/index-debug.html (100%) rename Resources/{ScrollviewTheming => PlatformWindowsTest}/index.html (100%) rename Resources/{PlatformWindows => PlatformWindowsTest}/main.j (100%) rename Resources/{predicateWithFormat => PredicateWithFormatTest}/AppController.j (100%) rename Resources/{predicateWithFormat => PredicateWithFormatTest}/Info.plist (100%) create mode 100644 Resources/PredicateWithFormatTest/Jakefile rename Resources/{predicateWithFormat => PredicateWithFormatTest}/Resources/MainMenu.cib (100%) rename Resources/{predicateWithFormat => PredicateWithFormatTest}/Resources/MainMenu.xib (100%) rename Resources/{ScrollviewTheming => PredicateWithFormatTest}/Resources/spinner.gif (100%) rename Resources/{SheetWindowOrderFrontIssue => PredicateWithFormatTest}/index-debug.html (100%) rename Resources/{SheetWindowOrderFrontIssue => PredicateWithFormatTest}/index.html (100%) rename Resources/{predicateWithFormat => PredicateWithFormatTest}/main.j (100%) rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => ResignFirstResponderWithCPControlTextDidEndEditingTest}/AppController.j (100%) rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => ResignFirstResponderWithCPControlTextDidEndEditingTest}/Info.plist (100%) create mode 100644 Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Jakefile rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => ResignFirstResponderWithCPControlTextDidEndEditingTest}/Resources/MainMenu.cib (100%) rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => ResignFirstResponderWithCPControlTextDidEndEditingTest}/Resources/MainMenu.xib (100%) rename Resources/{SmartFoldersDemo => ResignFirstResponderWithCPControlTextDidEndEditingTest}/Resources/spinner.gif (100%) rename Resources/{SimpleBindings2 => ResignFirstResponderWithCPControlTextDidEndEditingTest}/index-debug.html (100%) rename Resources/{SimpleBindings2 => ResignFirstResponderWithCPControlTextDidEndEditingTest}/index.html (100%) rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => ResignFirstResponderWithCPControlTextDidEndEditingTest}/main.j (100%) rename Resources/{ScalingTest2 => Scaling2Test}/AppController.j (100%) rename Resources/{ScalingTest2 => Scaling2Test}/Info.plist (100%) rename Resources/{ScalingTest2 => Scaling2Test}/Jakefile (60%) rename Resources/{ScalingTest2 => Scaling2Test}/PagePreviewController.j (100%) rename Resources/{ScalingTest2 => Scaling2Test}/README.txt (100%) rename Resources/{ScalingTest2 => Scaling2Test}/Resources/MainMenu.cib (100%) rename Resources/{ScalingTest2 => Scaling2Test}/Resources/MainMenu.xib (100%) rename Resources/{ScalingTest2 => Scaling2Test}/Resources/WidgetsLayout.cib (100%) rename Resources/{ScalingTest2 => Scaling2Test}/Resources/WidgetsLayout.xib (100%) rename Resources/{ScalingTest2 => Scaling2Test}/WidgetsLayout.j (100%) rename Resources/{ScalingTest2 => Scaling2Test}/index-debug.html (100%) rename Resources/{ScalingTest2 => Scaling2Test}/index.html (100%) rename Resources/{ScalingTest2 => Scaling2Test}/main.j (100%) delete mode 100644 Resources/ScrollviewTheming/Jakefile rename Resources/{ScrollviewTheming => ScrollviewThemingTest}/AppController.j (100%) rename Resources/{ScrollviewTheming => ScrollviewThemingTest}/DocumentView.j (100%) rename Resources/{ScrollviewTheming => ScrollviewThemingTest}/Info.plist (100%) create mode 100644 Resources/ScrollviewThemingTest/Jakefile rename Resources/{ScrollviewTheming => ScrollviewThemingTest}/Resources/MainMenu.cib (100%) rename Resources/{ScrollviewTheming => ScrollviewThemingTest}/Resources/MainMenu.xib (100%) rename Resources/{ThemeBrowser => ScrollviewThemingTest}/Resources/spinner.gif (100%) rename Resources/{SmartFoldersDemo => ScrollviewThemingTest}/index-debug.html (100%) rename Resources/{SmartFoldersDemo => ScrollviewThemingTest}/index.html (100%) rename Resources/{ScrollviewTheming => ScrollviewThemingTest}/main.j (100%) rename Resources/{SimpleBindings2 => SimpleBindings2Test}/AppController.j (100%) rename Resources/{SimpleBindings2 => SimpleBindings2Test}/Info.plist (100%) rename Resources/{ThemeBrowser => SimpleBindings2Test}/index-debug.html (100%) rename Resources/{ThemeBrowser => SimpleBindings2Test}/index.html (100%) rename Resources/{SimpleBindings2 => SimpleBindings2Test}/main.j (100%) rename Resources/{sizeToFitFix => SizeToFitTest}/AppController.j (100%) rename Resources/{sizeToFitFix => SizeToFitTest}/Info.plist (100%) create mode 100644 Resources/SizeToFitTest/Jakefile rename Resources/{UndoRedoWithMenuUpdate => SizeToFitTest}/Resources/spinner.gif (100%) rename Resources/{ThemeKitchenSink => SizeToFitTest}/index-debug.html (100%) rename Resources/{ThemeKitchenSink => SizeToFitTest}/index.html (100%) rename Resources/{sizeToFitFix => SizeToFitTest}/main.j (100%) delete mode 100644 Resources/SmartFoldersDemo/Jakefile rename Resources/{SmartFoldersDemo => SmartFoldersTest}/AppController.j (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/BadgedOutlineView.j (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/ImageAndTextView.j (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Info.plist (100%) create mode 100644 Resources/SmartFoldersTest/Jakefile rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Resources/MainMenu.cib (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Resources/MainMenu.xib (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Resources/PredicateEditor.cib (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Resources/PredicateEditor.xib (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Resources/SmartFolder.png (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Resources/searchBarBlue.png (100%) rename Resources/{predicateWithFormat => SmartFoldersTest}/Resources/spinner.gif (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/Resources/tableArray.plist (100%) rename Resources/{TrackingArea => SmartFoldersTest}/index-debug.html (100%) rename Resources/{TrackingArea => SmartFoldersTest}/index.html (100%) rename Resources/{SmartFoldersDemo => SmartFoldersTest}/main.j (100%) rename Resources/{ThemeBrowser => ThemeBrowserTest}/AppController.j (100%) rename Resources/{ThemeBrowser => ThemeBrowserTest}/Info.plist (100%) rename Resources/{ThemeBrowser => ThemeBrowserTest}/Resources/MainMenu.cib (100%) rename Resources/{ThemeBrowser => ThemeBrowserTest}/Resources/MainMenu.xib (100%) rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => ThemeBrowserTest}/Resources/spinner.gif (100%) rename Resources/{ThemeBrowser => ThemeBrowserTest}/SCMultiLineLabel.j (100%) rename Resources/{ThemeBrowser => ThemeBrowserTest}/SCString.j (100%) rename Resources/{UndoRedoWithMenuUpdate => ThemeBrowserTest}/index-debug.html (100%) rename Resources/{UndoRedoWithMenuUpdate => ThemeBrowserTest}/index.html (100%) rename Resources/{ThemeBrowser => ThemeBrowserTest}/main.j (100%) rename Resources/{ThemeKitchenSink => ThemeKitchenSinkTest}/AppController.j (100%) rename Resources/{ThemeKitchenSink => ThemeKitchenSinkTest}/Info.plist (100%) rename Resources/{ThemeKitchenSink => ThemeKitchenSinkTest}/Jakefile (56%) rename Resources/{ThemeKitchenSink => ThemeKitchenSinkTest}/Resources/MainMenu.cib (100%) rename Resources/{ThemeKitchenSink => ThemeKitchenSinkTest}/Resources/MainMenu.xib (100%) rename Resources/{loadDynamicFrameworks => ThemeKitchenSinkTest}/index-debug.html (100%) rename Resources/{loadDynamicFrameworks => ThemeKitchenSinkTest}/index.html (100%) rename Resources/{ThemeKitchenSink => ThemeKitchenSinkTest}/main.j (100%) rename Resources/{TrackingArea => TrackingAreaTest}/AppController.j (100%) rename Resources/{TrackingArea => TrackingAreaTest}/Info.plist (100%) rename Resources/{TrackingArea => TrackingAreaTest}/Jakefile (56%) rename Resources/{TrackingArea => TrackingAreaTest}/Resources/MainMenu.cib (100%) rename Resources/{TrackingArea => TrackingAreaTest}/Resources/MainMenu.xib (100%) rename Resources/{predicateWithFormat => TrackingAreaTest}/index-debug.html (100%) rename Resources/{predicateWithFormat => TrackingAreaTest}/index.html (100%) rename Resources/{TrackingArea => TrackingAreaTest}/main.j (100%) delete mode 100644 Resources/UndoRedoWithMenuUpdate/Jakefile rename Resources/{UndoRedoWithMenuUpdate => UndoRedoWithMenuUpdateTest}/AppController.j (100%) rename Resources/{UndoRedoWithMenuUpdate => UndoRedoWithMenuUpdateTest}/Info.plist (100%) create mode 100644 Resources/UndoRedoWithMenuUpdateTest/Jakefile rename Resources/{UndoRedoWithMenuUpdate => UndoRedoWithMenuUpdateTest}/Resources/MainMenu.cib (100%) rename Resources/{sizeToFitFix => UndoRedoWithMenuUpdateTest}/Resources/spinner.gif (100%) rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => UndoRedoWithMenuUpdateTest}/index-debug.html (100%) rename Resources/{resignFirstResponder-CPControlTextDidEndEditing => UndoRedoWithMenuUpdateTest}/index.html (100%) rename Resources/{UndoRedoWithMenuUpdate => UndoRedoWithMenuUpdateTest}/main.j (100%) rename Resources/{SheetWindowOrderFrontIssue => WindowSheetOrderTest}/AppController.j (100%) rename Resources/{SheetWindowOrderFrontIssue => WindowSheetOrderTest}/Info.plist (100%) rename Resources/{SheetWindowOrderFrontIssue => WindowSheetOrderTest}/Jakefile (64%) rename Resources/{SheetWindowOrderFrontIssue => WindowSheetOrderTest}/Resources/MainMenu.cib (100%) rename Resources/{SheetWindowOrderFrontIssue => WindowSheetOrderTest}/Resources/MainMenu.xib (100%) rename Resources/{sizeToFitFix => WindowSheetOrderTest}/index-debug.html (100%) rename Resources/{sizeToFitFix => WindowSheetOrderTest}/index.html (100%) rename Resources/{SheetWindowOrderFrontIssue => WindowSheetOrderTest}/main.j (100%) delete mode 100644 Resources/loadDynamicFrameworks/Jakefile delete mode 100644 Resources/predicateWithFormat/Jakefile delete mode 100644 Resources/resignFirstResponder-CPControlTextDidEndEditing/Jakefile delete mode 100644 Resources/sizeToFitFix/Jakefile diff --git a/Resources/ArrayController1/Jakefile b/Resources/ArrayController1/Jakefile deleted file mode 100644 index 8d15b23e8..000000000 --- a/Resources/ArrayController1/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * ArrayController - * - * Created by Alexander Ljungberg on April 2, 2011. - * Copyright 2011, WireLoad All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("ArrayController", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "ArrayController.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("ArrayController"); - task.setIdentifier("com.yourcompany.ArrayController"); - task.setVersion("1.0"); - task.setAuthor("WireLoad"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("ArrayController"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["ArrayController"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "ArrayController", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "ArrayController", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "ArrayController")); - OS.system(["press", "-f", FILE.join("Build", "Release", "ArrayController"), FILE.join("Build", "Deployment", "ArrayController")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "ArrayController")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "ArrayController"), FILE.join("Build", "Desktop", "ArrayController", "ArrayController.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "ArrayController", "ArrayController.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "ArrayController")); - print("----------------------------"); -} diff --git a/Resources/ArrayControllerInitialSelectionTest/Jakefile b/Resources/ArrayControllerInitialSelectionTest/Jakefile index a0e64eac4..80742c5d7 100644 --- a/Resources/ArrayControllerInitialSelectionTest/Jakefile +++ b/Resources/ArrayControllerInitialSelectionTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("ArrayControllerInitialSelectionTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "ArrayControllerInitialSelectionTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "ArrayControllerInitialSelectionTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("ArrayControllerInitialSelectionTest"); task.setIdentifier("com.yourcompany.ArrayControllerInitialSelectionTest"); @@ -26,7 +26,7 @@ app ("ArrayControllerInitialSelectionTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("ArrayControllerInitialSelectionTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "ArrayControllerInitialSelectionTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "ArrayControllerInitialSelectionTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "ArrayControllerInitialSelectionTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "ArrayControllerInitialSelectionTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "ArrayControllerInitialSelectionTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "ArrayControllerInitialSelectionTest"), FILE.join("Build", "Deployment", "ArrayControllerInitialSelectionTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "ArrayControllerInitialSelectionTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "ArrayControllerInitialSelectionTest"), path.join("Build", "Deployment", "ArrayControllerInitialSelectionTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "ArrayControllerInitialSelectionTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "ArrayControllerInitialSelectionTest"), FILE.join("Build", "Desktop", "ArrayControllerInitialSelectionTest", "ArrayControllerInitialSelectionTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "ArrayControllerInitialSelectionTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "ArrayControllerInitialSelectionTest"), path.join("Build", "Desktop", "ArrayControllerInitialSelectionTest", "ArrayControllerInitialSelectionTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "ArrayControllerInitialSelectionTest", "ArrayControllerInitialSelectionTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "ArrayControllerInitialSelectionTest", "ArrayControllerInitialSelectionTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "ArrayControllerInitialSelectionTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "ArrayControllerInitialSelectionTest")); + console.log("----------------------------"); } diff --git a/Resources/ArrayControllerRemovingFirstTest/Jakefile b/Resources/ArrayControllerRemovingFirstTest/Jakefile index 6f4a90273..3b1d49d4b 100644 --- a/Resources/ArrayControllerRemovingFirstTest/Jakefile +++ b/Resources/ArrayControllerRemovingFirstTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("ArrayControllerRemovingFirstTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "ArrayControllerRemovingFirstTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "ArrayControllerRemovingFirstTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("ArrayControllerRemovingFirstTest"); task.setIdentifier("com.yourcompany.ArrayControllerRemovingFirstTest"); @@ -26,7 +26,7 @@ app ("ArrayControllerRemovingFirstTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("ArrayControllerRemovingFirstTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "ArrayControllerRemovingFirstTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "ArrayControllerRemovingFirstTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "ArrayControllerRemovingFirstTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "ArrayControllerRemovingFirstTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "ArrayControllerRemovingFirstTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "ArrayControllerRemovingFirstTest"), FILE.join("Build", "Deployment", "ArrayControllerRemovingFirstTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "ArrayControllerRemovingFirstTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "ArrayControllerRemovingFirstTest"), path.join("Build", "Deployment", "ArrayControllerRemovingFirstTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "ArrayControllerRemovingFirstTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "ArrayControllerRemovingFirstTest"), FILE.join("Build", "Desktop", "ArrayControllerRemovingFirstTest", "ArrayControllerRemovingFirstTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "ArrayControllerRemovingFirstTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "ArrayControllerRemovingFirstTest"), path.join("Build", "Desktop", "ArrayControllerRemovingFirstTest", "ArrayControllerRemovingFirstTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "ArrayControllerRemovingFirstTest", "ArrayControllerRemovingFirstTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "ArrayControllerRemovingFirstTest", "ArrayControllerRemovingFirstTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "ArrayControllerRemovingFirstTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "ArrayControllerRemovingFirstTest")); + console.log("----------------------------"); } diff --git a/Resources/ArrayController1/AppController.j b/Resources/ArrayControllerTest/AppController.j similarity index 100% rename from Resources/ArrayController1/AppController.j rename to Resources/ArrayControllerTest/AppController.j diff --git a/Resources/ArrayController1/Info.plist b/Resources/ArrayControllerTest/Info.plist similarity index 100% rename from Resources/ArrayController1/Info.plist rename to Resources/ArrayControllerTest/Info.plist diff --git a/Resources/ArrayControllerTest/Jakefile b/Resources/ArrayControllerTest/Jakefile new file mode 100644 index 000000000..4cfff7788 --- /dev/null +++ b/Resources/ArrayControllerTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * ArrayControllerTest + * + * Created by Alexander Ljungberg on April 2, 2011. + * Copyright 2011, WireLoad All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("ArrayControllerTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "ArrayControllerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("ArrayControllerTest"); + task.setIdentifier("com.yourcompany.ArrayControllerTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("ArrayControllerTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["ArrayControllerTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "ArrayControllerTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "ArrayControllerTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "ArrayControllerTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "ArrayControllerTest"), path.join("Build", "Deployment", "ArrayControllerTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "ArrayControllerTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "ArrayControllerTest"), path.join("Build", "Desktop", "ArrayControllerTest", "ArrayControllerTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "ArrayControllerTest", "ArrayControllerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "ArrayControllerTest")); + console.log("----------------------------"); +} diff --git a/Resources/ArrayController1/Resources/MainMenu.cib b/Resources/ArrayControllerTest/Resources/MainMenu.cib similarity index 100% rename from Resources/ArrayController1/Resources/MainMenu.cib rename to Resources/ArrayControllerTest/Resources/MainMenu.cib diff --git a/Resources/ArrayController1/Resources/MainMenu.xib b/Resources/ArrayControllerTest/Resources/MainMenu.xib similarity index 100% rename from Resources/ArrayController1/Resources/MainMenu.xib rename to Resources/ArrayControllerTest/Resources/MainMenu.xib diff --git a/Resources/ArrayController1/Resources/spinner.gif b/Resources/ArrayControllerTest/Resources/spinner.gif similarity index 100% rename from Resources/ArrayController1/Resources/spinner.gif rename to Resources/ArrayControllerTest/Resources/spinner.gif diff --git a/Resources/ArrayController1/index-debug.html b/Resources/ArrayControllerTest/index-debug.html similarity index 100% rename from Resources/ArrayController1/index-debug.html rename to Resources/ArrayControllerTest/index-debug.html diff --git a/Resources/ArrayController1/index.html b/Resources/ArrayControllerTest/index.html similarity index 100% rename from Resources/ArrayController1/index.html rename to Resources/ArrayControllerTest/index.html diff --git a/Resources/ArrayController1/main.j b/Resources/ArrayControllerTest/main.j similarity index 100% rename from Resources/ArrayController1/main.j rename to Resources/ArrayControllerTest/main.j diff --git a/Resources/AttachedSheet2/Jakefile b/Resources/AttachedSheet2/Jakefile deleted file mode 100644 index d59137d5b..000000000 --- a/Resources/AttachedSheet2/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * AttachedSheet2 - * - * Created by Saikat Chakrabarti on March 16, 2010. - * Copyright 2010, gomockingbird.com All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("AttachedSheet2", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "AttachedSheet2.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("AttachedSheet2"); - task.setIdentifier("com.gomockingbird.AttachedSheet2"); - task.setVersion("1.0"); - task.setAuthor("Saikat Chakrabarti and Sheena Pakanati"); - task.setEmail("contact @nospam@ gomockingbird.com"); - task.setSummary("AttachedSheet2"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/*")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -function printResults(configuration) -{ - print("----------------------------") - print(configuration+" app built at path: "+FILE.join("Build", configuration, "AttachedSheet2")); - print("----------------------------") -} - -task ("default", ["AttachedSheet2"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "AttachedSheet2", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "AttachedSheet2", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "AttachedSheet2")); - OS.system(["press", "-f", FILE.join("Build", "Release", "AttachedSheet2"), FILE.join("Build", "Deployment", "AttachedSheet2")]); - printResults("Deployment") -}); - -task ("press", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Press", "AttachedSheet2")); - OS.system(["press", "-f", FILE.join("Build", "Release", "AttachedSheet2"), FILE.join("Build", "Press", "AttachedSheet2")]); -}); - -task ("flatten", ["press"], function() -{ - FILE.mkdirs(FILE.join("Build", "Flatten", "AttachedSheet2")); - OS.system(["flatten", "-f", "--verbose", "--split", "3", "-c", "closure-compiler", FILE.join("Build", "Press", "AttachedSheet2"), FILE.join("Build", "Flatten", "AttachedSheet2")]); -}); diff --git a/Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.pbxproj b/Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.pbxproj deleted file mode 100644 index eaa9a88d6..000000000 --- a/Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.pbxproj +++ /dev/null @@ -1,304 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - B210EF7E153B0A8D005D15EE /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B210EF7D153B0A8D005D15EE /* Cocoa.framework */; }; - B210EF88153B0A8D005D15EE /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B210EF86153B0A8D005D15EE /* InfoPlist.strings */; }; - B210EF8A153B0A8D005D15EE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B210EF89153B0A8D005D15EE /* main.m */; }; - B210EF8E153B0A8D005D15EE /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = B210EF8C153B0A8D005D15EE /* Credits.rtf */; }; - B210EF91153B0A8D005D15EE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B210EF90153B0A8D005D15EE /* AppDelegate.m */; }; - B2129637153B0B3000E15669 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = B2129636153B0B3000E15669 /* MainMenu.xib */; }; - B212963B153B0B4900E15669 /* Window.xib in Resources */ = {isa = PBXBuildFile; fileRef = B2129639153B0B4900E15669 /* Window.xib */; }; - B212963C153B0E6A00E15669 /* SheetWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = B2129630153B0ADF00E15669 /* SheetWindow.m */; }; - B212963D153B0E6C00E15669 /* SheetWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = B2129632153B0ADF00E15669 /* SheetWindowController.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - B210EF79153B0A8D005D15EE /* TestSheet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestSheet.app; sourceTree = BUILT_PRODUCTS_DIR; }; - B210EF7D153B0A8D005D15EE /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - B210EF80153B0A8D005D15EE /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - B210EF81153B0A8D005D15EE /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; - B210EF82153B0A8D005D15EE /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - B210EF85153B0A8D005D15EE /* TestSheet-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TestSheet-Info.plist"; sourceTree = ""; }; - B210EF87153B0A8D005D15EE /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - B210EF89153B0A8D005D15EE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - B210EF8B153B0A8D005D15EE /* TestSheet-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "TestSheet-Prefix.pch"; sourceTree = ""; }; - B210EF8D153B0A8D005D15EE /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = ""; }; - B210EF8F153B0A8D005D15EE /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - B210EF90153B0A8D005D15EE /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - B212962F153B0ADF00E15669 /* SheetWindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SheetWindow.h; sourceTree = ""; }; - B2129630153B0ADF00E15669 /* SheetWindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SheetWindow.m; sourceTree = ""; }; - B2129631153B0ADF00E15669 /* SheetWindowController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SheetWindowController.h; sourceTree = ""; }; - B2129632153B0ADF00E15669 /* SheetWindowController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SheetWindowController.m; sourceTree = ""; }; - B2129636153B0B3000E15669 /* MainMenu.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MainMenu.xib; path = ../Resources/MainMenu.xib; sourceTree = ""; }; - B2129639153B0B4900E15669 /* Window.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Window.xib; path = ../Resources/Window.xib; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - B210EF76153B0A8D005D15EE /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - B210EF7E153B0A8D005D15EE /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - B210EF6E153B0A8D005D15EE = { - isa = PBXGroup; - children = ( - B2129639153B0B4900E15669 /* Window.xib */, - B2129636153B0B3000E15669 /* MainMenu.xib */, - B210EF83153B0A8D005D15EE /* TestSheet */, - B210EF7C153B0A8D005D15EE /* Frameworks */, - B210EF7A153B0A8D005D15EE /* Products */, - ); - sourceTree = ""; - }; - B210EF7A153B0A8D005D15EE /* Products */ = { - isa = PBXGroup; - children = ( - B210EF79153B0A8D005D15EE /* TestSheet.app */, - ); - name = Products; - sourceTree = ""; - }; - B210EF7C153B0A8D005D15EE /* Frameworks */ = { - isa = PBXGroup; - children = ( - B210EF7D153B0A8D005D15EE /* Cocoa.framework */, - B210EF7F153B0A8D005D15EE /* Other Frameworks */, - ); - name = Frameworks; - sourceTree = ""; - }; - B210EF7F153B0A8D005D15EE /* Other Frameworks */ = { - isa = PBXGroup; - children = ( - B210EF80153B0A8D005D15EE /* AppKit.framework */, - B210EF81153B0A8D005D15EE /* CoreData.framework */, - B210EF82153B0A8D005D15EE /* Foundation.framework */, - ); - name = "Other Frameworks"; - sourceTree = ""; - }; - B210EF83153B0A8D005D15EE /* TestSheet */ = { - isa = PBXGroup; - children = ( - B210EF8F153B0A8D005D15EE /* AppDelegate.h */, - B210EF90153B0A8D005D15EE /* AppDelegate.m */, - B212962F153B0ADF00E15669 /* SheetWindow.h */, - B2129630153B0ADF00E15669 /* SheetWindow.m */, - B2129631153B0ADF00E15669 /* SheetWindowController.h */, - B2129632153B0ADF00E15669 /* SheetWindowController.m */, - B210EF84153B0A8D005D15EE /* Supporting Files */, - ); - path = TestSheet; - sourceTree = ""; - }; - B210EF84153B0A8D005D15EE /* Supporting Files */ = { - isa = PBXGroup; - children = ( - B210EF85153B0A8D005D15EE /* TestSheet-Info.plist */, - B210EF86153B0A8D005D15EE /* InfoPlist.strings */, - B210EF89153B0A8D005D15EE /* main.m */, - B210EF8B153B0A8D005D15EE /* TestSheet-Prefix.pch */, - B210EF8C153B0A8D005D15EE /* Credits.rtf */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - B210EF78153B0A8D005D15EE /* TestSheet */ = { - isa = PBXNativeTarget; - buildConfigurationList = B210EF97153B0A8D005D15EE /* Build configuration list for PBXNativeTarget "TestSheet" */; - buildPhases = ( - B210EF75153B0A8D005D15EE /* Sources */, - B210EF76153B0A8D005D15EE /* Frameworks */, - B210EF77153B0A8D005D15EE /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = TestSheet; - productName = TestSheet; - productReference = B210EF79153B0A8D005D15EE /* TestSheet.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - B210EF70153B0A8D005D15EE /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0430; - }; - buildConfigurationList = B210EF73153B0A8D005D15EE /* Build configuration list for PBXProject "TestSheet" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = B210EF6E153B0A8D005D15EE; - productRefGroup = B210EF7A153B0A8D005D15EE /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - B210EF78153B0A8D005D15EE /* TestSheet */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - B210EF77153B0A8D005D15EE /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B210EF88153B0A8D005D15EE /* InfoPlist.strings in Resources */, - B2129637153B0B3000E15669 /* MainMenu.xib in Resources */, - B212963B153B0B4900E15669 /* Window.xib in Resources */, - B210EF8E153B0A8D005D15EE /* Credits.rtf in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - B210EF75153B0A8D005D15EE /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B210EF8A153B0A8D005D15EE /* main.m in Sources */, - B210EF91153B0A8D005D15EE /* AppDelegate.m in Sources */, - B212963D153B0E6C00E15669 /* SheetWindowController.m in Sources */, - B212963C153B0E6A00E15669 /* SheetWindow.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - B210EF86153B0A8D005D15EE /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - B210EF87153B0A8D005D15EE /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - B210EF8C153B0A8D005D15EE /* Credits.rtf */ = { - isa = PBXVariantGroup; - children = ( - B210EF8D153B0A8D005D15EE /* en */, - ); - name = Credits.rtf; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - B210EF95153B0A8D005D15EE /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - CLANG_ENABLE_OBJC_ARC = YES; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.7; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - }; - name = Debug; - }; - B210EF96153B0A8D005D15EE /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - CLANG_ENABLE_OBJC_ARC = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.7; - SDKROOT = macosx; - }; - name = Release; - }; - B210EF98153B0A8D005D15EE /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "TestSheet/TestSheet-Prefix.pch"; - INFOPLIST_FILE = "TestSheet/TestSheet-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - B210EF99153B0A8D005D15EE /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "TestSheet/TestSheet-Prefix.pch"; - INFOPLIST_FILE = "TestSheet/TestSheet-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - B210EF73153B0A8D005D15EE /* Build configuration list for PBXProject "TestSheet" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B210EF95153B0A8D005D15EE /* Debug */, - B210EF96153B0A8D005D15EE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B210EF97153B0A8D005D15EE /* Build configuration list for PBXNativeTarget "TestSheet" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B210EF98153B0A8D005D15EE /* Debug */, - B210EF99153B0A8D005D15EE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = B210EF70153B0A8D005D15EE /* Project object */; -} diff --git a/Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 2a88e2374..000000000 --- a/Resources/AttachedSheet2/xcode/TestSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Resources/AttachedSheet2/AppController.j b/Resources/AttachedSheet2Test/AppController.j similarity index 100% rename from Resources/AttachedSheet2/AppController.j rename to Resources/AttachedSheet2Test/AppController.j diff --git a/Resources/AttachedSheet2/Info.plist b/Resources/AttachedSheet2Test/Info.plist similarity index 100% rename from Resources/AttachedSheet2/Info.plist rename to Resources/AttachedSheet2Test/Info.plist diff --git a/Resources/AttachedSheet2Test/Jakefile b/Resources/AttachedSheet2Test/Jakefile new file mode 100644 index 000000000..4f6aabc61 --- /dev/null +++ b/Resources/AttachedSheet2Test/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * AttachedSheet2Test + * + * Created by Saikat Chakrabarti on March 16, 2010. + * Copyright 2010, gomockingbird.com All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("AttachedSheet2Test", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "AttachedSheet2Test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("AttachedSheet2Test"); + task.setIdentifier("com.gomockingbird.AttachedSheet2Test"); + task.setVersion("1.0"); + task.setAuthor("Saikat Chakrabarti and Sheena Pakanati"); + task.setEmail("contact @nospam@ gomockingbird.com"); + task.setSummary("AttachedSheet2Test"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/*")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +function printResults(configuration) +{ + console.log("----------------------------") + console.log(configuration+" app built at path: "+path.join("Build", configuration, "AttachedSheet2Test")); + console.log("----------------------------") +} + +task ("default", ["AttachedSheet2Test"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "AttachedSheet2Test", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "AttachedSheet2Test", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "AttachedSheet2Test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "AttachedSheet2Test"), path.join("Build", "Deployment", "AttachedSheet2Test")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("press", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Press", "AttachedSheet2Test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "AttachedSheet2Test"), path.join("Build", "Press", "AttachedSheet2Test")].join(" "), { stdio: "inherit" }); +}); + +task ("flatten", ["press"], function() +{ + fs.mkdirSync(path.join("Build", "Flatten", "AttachedSheet2Test"), { recursive: true }); + cp.execSync(["flatten", "-f", "--verbose", "--split", "3", "-c", "closure-compiler", path.join("Build", "Press", "AttachedSheet2Test"), path.join("Build", "Flatten", "AttachedSheet2Test")].join(" "), { stdio: "inherit" }); +}); diff --git a/Resources/AttachedSheet2/MainMenu.cib b/Resources/AttachedSheet2Test/MainMenu.cib similarity index 100% rename from Resources/AttachedSheet2/MainMenu.cib rename to Resources/AttachedSheet2Test/MainMenu.cib diff --git a/Resources/AttachedSheet2/Resources/MainMenu.cib b/Resources/AttachedSheet2Test/Resources/MainMenu.cib similarity index 100% rename from Resources/AttachedSheet2/Resources/MainMenu.cib rename to Resources/AttachedSheet2Test/Resources/MainMenu.cib diff --git a/Resources/AttachedSheet2/Resources/MainMenu.xib b/Resources/AttachedSheet2Test/Resources/MainMenu.xib similarity index 100% rename from Resources/AttachedSheet2/Resources/MainMenu.xib rename to Resources/AttachedSheet2Test/Resources/MainMenu.xib diff --git a/Resources/AttachedSheet2/Resources/Window.cib b/Resources/AttachedSheet2Test/Resources/Window.cib similarity index 100% rename from Resources/AttachedSheet2/Resources/Window.cib rename to Resources/AttachedSheet2Test/Resources/Window.cib diff --git a/Resources/AttachedSheet2/Resources/Window.xib b/Resources/AttachedSheet2Test/Resources/Window.xib similarity index 100% rename from Resources/AttachedSheet2/Resources/Window.xib rename to Resources/AttachedSheet2Test/Resources/Window.xib diff --git a/Resources/AttachedSheet/Resources/spinner.gif b/Resources/AttachedSheet2Test/Resources/spinner.gif similarity index 100% rename from Resources/AttachedSheet/Resources/spinner.gif rename to Resources/AttachedSheet2Test/Resources/spinner.gif diff --git a/Resources/AttachedSheet2/SheetWindowController.j b/Resources/AttachedSheet2Test/SheetWindowController.j similarity index 100% rename from Resources/AttachedSheet2/SheetWindowController.j rename to Resources/AttachedSheet2Test/SheetWindowController.j diff --git a/Resources/AttachedSheet2/Window.cib b/Resources/AttachedSheet2Test/Window.cib similarity index 100% rename from Resources/AttachedSheet2/Window.cib rename to Resources/AttachedSheet2Test/Window.cib diff --git a/Resources/AttachedSheet/index-debug.html b/Resources/AttachedSheet2Test/index-debug.html similarity index 100% rename from Resources/AttachedSheet/index-debug.html rename to Resources/AttachedSheet2Test/index-debug.html diff --git a/Resources/AttachedSheet/index.html b/Resources/AttachedSheet2Test/index.html similarity index 100% rename from Resources/AttachedSheet/index.html rename to Resources/AttachedSheet2Test/index.html diff --git a/Resources/AttachedSheet2/main.j b/Resources/AttachedSheet2Test/main.j similarity index 100% rename from Resources/AttachedSheet2/main.j rename to Resources/AttachedSheet2Test/main.j diff --git a/Resources/AttachedSheet2/xcode/TestSheet/AppDelegate.h b/Resources/AttachedSheet2Test/xcode/TestSheet/AppDelegate.h similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/AppDelegate.h rename to Resources/AttachedSheet2Test/xcode/TestSheet/AppDelegate.h diff --git a/Resources/AttachedSheet2/xcode/TestSheet/AppDelegate.m b/Resources/AttachedSheet2Test/xcode/TestSheet/AppDelegate.m similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/AppDelegate.m rename to Resources/AttachedSheet2Test/xcode/TestSheet/AppDelegate.m diff --git a/Resources/AttachedSheet2/xcode/TestSheet/SheetWindow.h b/Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindow.h similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/SheetWindow.h rename to Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindow.h diff --git a/Resources/AttachedSheet2/xcode/TestSheet/SheetWindow.m b/Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindow.m similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/SheetWindow.m rename to Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindow.m diff --git a/Resources/AttachedSheet2/xcode/TestSheet/SheetWindowController.h b/Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindowController.h similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/SheetWindowController.h rename to Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindowController.h diff --git a/Resources/AttachedSheet2/xcode/TestSheet/SheetWindowController.m b/Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindowController.m similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/SheetWindowController.m rename to Resources/AttachedSheet2Test/xcode/TestSheet/SheetWindowController.m diff --git a/Resources/AttachedSheet2/xcode/TestSheet/TestSheet-Info.plist b/Resources/AttachedSheet2Test/xcode/TestSheet/TestSheet-Info.plist similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/TestSheet-Info.plist rename to Resources/AttachedSheet2Test/xcode/TestSheet/TestSheet-Info.plist diff --git a/Resources/AttachedSheet2/xcode/TestSheet/TestSheet-Prefix.pch b/Resources/AttachedSheet2Test/xcode/TestSheet/TestSheet-Prefix.pch similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/TestSheet-Prefix.pch rename to Resources/AttachedSheet2Test/xcode/TestSheet/TestSheet-Prefix.pch diff --git a/Resources/AttachedSheet2/xcode/TestSheet/en.lproj/Credits.rtf b/Resources/AttachedSheet2Test/xcode/TestSheet/en.lproj/Credits.rtf similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/en.lproj/Credits.rtf rename to Resources/AttachedSheet2Test/xcode/TestSheet/en.lproj/Credits.rtf diff --git a/Resources/AttachedSheet2/xcode/TestSheet/en.lproj/InfoPlist.strings b/Resources/AttachedSheet2Test/xcode/TestSheet/en.lproj/InfoPlist.strings similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/en.lproj/InfoPlist.strings rename to Resources/AttachedSheet2Test/xcode/TestSheet/en.lproj/InfoPlist.strings diff --git a/Resources/AttachedSheet2/xcode/TestSheet/main.m b/Resources/AttachedSheet2Test/xcode/TestSheet/main.m similarity index 100% rename from Resources/AttachedSheet2/xcode/TestSheet/main.m rename to Resources/AttachedSheet2Test/xcode/TestSheet/main.m diff --git a/Resources/AttachedSheet/AppController.j b/Resources/AttachedSheetTest/AppController.j similarity index 100% rename from Resources/AttachedSheet/AppController.j rename to Resources/AttachedSheetTest/AppController.j diff --git a/Resources/AttachedSheet/Info.plist b/Resources/AttachedSheetTest/Info.plist similarity index 100% rename from Resources/AttachedSheet/Info.plist rename to Resources/AttachedSheetTest/Info.plist diff --git a/Resources/AttachedSheet/Resources/CPImageNameColorPanel.png b/Resources/AttachedSheetTest/Resources/CPImageNameColorPanel.png similarity index 100% rename from Resources/AttachedSheet/Resources/CPImageNameColorPanel.png rename to Resources/AttachedSheetTest/Resources/CPImageNameColorPanel.png diff --git a/Resources/AttachedSheet/Resources/New.png b/Resources/AttachedSheetTest/Resources/New.png similarity index 100% rename from Resources/AttachedSheet/Resources/New.png rename to Resources/AttachedSheetTest/Resources/New.png diff --git a/Resources/AttachedSheet2/Resources/spinner.gif b/Resources/AttachedSheetTest/Resources/spinner.gif similarity index 100% rename from Resources/AttachedSheet2/Resources/spinner.gif rename to Resources/AttachedSheetTest/Resources/spinner.gif diff --git a/Resources/AttachedSheet2/index-debug.html b/Resources/AttachedSheetTest/index-debug.html similarity index 100% rename from Resources/AttachedSheet2/index-debug.html rename to Resources/AttachedSheetTest/index-debug.html diff --git a/Resources/AttachedSheet2/index.html b/Resources/AttachedSheetTest/index.html similarity index 100% rename from Resources/AttachedSheet2/index.html rename to Resources/AttachedSheetTest/index.html diff --git a/Resources/AttachedSheet/main.j b/Resources/AttachedSheetTest/main.j similarity index 100% rename from Resources/AttachedSheet/main.j rename to Resources/AttachedSheetTest/main.j diff --git a/Resources/Bindings/AppController.j b/Resources/BindingContentArrayTest/AppController.j similarity index 100% rename from Resources/Bindings/AppController.j rename to Resources/BindingContentArrayTest/AppController.j diff --git a/Resources/Bindings/Info.plist b/Resources/BindingContentArrayTest/Info.plist similarity index 100% rename from Resources/Bindings/Info.plist rename to Resources/BindingContentArrayTest/Info.plist diff --git a/Resources/Bindings/Jakefile b/Resources/BindingContentArrayTest/Jakefile similarity index 50% rename from Resources/Bindings/Jakefile rename to Resources/BindingContentArrayTest/Jakefile index a5d4665b0..3a0b50f5e 100644 --- a/Resources/Bindings/Jakefile +++ b/Resources/BindingContentArrayTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("BindingContentArrayTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "BindingContentArrayTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "BindingContentArrayTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("BindingContentArrayTest"); task.setIdentifier("com.aparajita.BindingContentArrayTest"); @@ -26,7 +26,7 @@ app ("BindingContentArrayTest", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("BindingContentArrayTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "BindingContentArrayTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "BindingContentArrayTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "BindingContentArrayTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "BindingContentArrayTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "BindingContentArrayTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "BindingContentArrayTest"), FILE.join("Build", "Deployment", "BindingContentArrayTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "BindingContentArrayTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "BindingContentArrayTest"), path.join("Build", "Deployment", "BindingContentArrayTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "BindingContentArrayTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "BindingContentArrayTest"), FILE.join("Build", "Desktop", "BindingContentArrayTest", "BindingContentArrayTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "BindingContentArrayTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "BindingContentArrayTest"), path.join("Build", "Desktop", "BindingContentArrayTest", "BindingContentArrayTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "BindingContentArrayTest", "BindingContentArrayTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "BindingContentArrayTest", "BindingContentArrayTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "BindingContentArrayTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "BindingContentArrayTest")); + console.log("----------------------------"); } diff --git a/Resources/Bindings/Resources/spinner.gif b/Resources/BindingContentArrayTest/Resources/spinner.gif similarity index 100% rename from Resources/Bindings/Resources/spinner.gif rename to Resources/BindingContentArrayTest/Resources/spinner.gif diff --git a/Resources/Bindings/index-debug.html b/Resources/BindingContentArrayTest/index-debug.html similarity index 100% rename from Resources/Bindings/index-debug.html rename to Resources/BindingContentArrayTest/index-debug.html diff --git a/Resources/Bindings/index.html b/Resources/BindingContentArrayTest/index.html similarity index 100% rename from Resources/Bindings/index.html rename to Resources/BindingContentArrayTest/index.html diff --git a/Resources/Bindings/main.j b/Resources/BindingContentArrayTest/main.j similarity index 100% rename from Resources/Bindings/main.j rename to Resources/BindingContentArrayTest/main.j diff --git a/Resources/CGCanvasContext/Jakefile b/Resources/CGCanvasContext/Jakefile deleted file mode 100644 index efdb3534e..000000000 --- a/Resources/CGCanvasContext/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * cgcanvascontext - * - * Created by You on February 19, 2013. - * Copyright 2013, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("cgcanvascontext", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "cgcanvascontext.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("cgcanvascontext"); - task.setIdentifier("com.yourcompany.cgcanvascontext"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("cgcanvascontext"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["cgcanvascontext"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "cgcanvascontext", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "cgcanvascontext", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "cgcanvascontext")); - OS.system(["press", "-f", FILE.join("Build", "Release", "cgcanvascontext"), FILE.join("Build", "Deployment", "cgcanvascontext")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "cgcanvascontext")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "cgcanvascontext"), FILE.join("Build", "Desktop", "cgcanvascontext", "cgcanvascontext.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "cgcanvascontext", "cgcanvascontext.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "cgcanvascontext")); - print("----------------------------"); -} diff --git a/Resources/CGCanvasContext/AppController.j b/Resources/CGCanvasContextTest/AppController.j similarity index 100% rename from Resources/CGCanvasContext/AppController.j rename to Resources/CGCanvasContextTest/AppController.j diff --git a/Resources/CGCanvasContext/Info.plist b/Resources/CGCanvasContextTest/Info.plist similarity index 100% rename from Resources/CGCanvasContext/Info.plist rename to Resources/CGCanvasContextTest/Info.plist diff --git a/Resources/CGCanvasContextTest/Jakefile b/Resources/CGCanvasContextTest/Jakefile new file mode 100644 index 000000000..e99120061 --- /dev/null +++ b/Resources/CGCanvasContextTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CGCanvasContextTest + * + * Created by You on February 19, 2013. + * Copyright 2013, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CGCanvasContextTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CGCanvasContextTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CGCanvasContextTest"); + task.setIdentifier("com.yourcompany.CGCanvasContextTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CGCanvasContextTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CGCanvasContextTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CGCanvasContextTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CGCanvasContextTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CGCanvasContextTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CGCanvasContextTest"), path.join("Build", "Deployment", "CGCanvasContextTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CGCanvasContextTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CGCanvasContextTest"), path.join("Build", "Desktop", "CGCanvasContextTest", "CGCanvasContextTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CGCanvasContextTest", "CGCanvasContextTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CGCanvasContextTest")); + console.log("----------------------------"); +} diff --git a/Resources/CGCanvasContext/Resources/spinner.gif b/Resources/CGCanvasContextTest/Resources/spinner.gif similarity index 100% rename from Resources/CGCanvasContext/Resources/spinner.gif rename to Resources/CGCanvasContextTest/Resources/spinner.gif diff --git a/Resources/CGCanvasContext/index-debug.html b/Resources/CGCanvasContextTest/index-debug.html similarity index 100% rename from Resources/CGCanvasContext/index-debug.html rename to Resources/CGCanvasContextTest/index-debug.html diff --git a/Resources/CGCanvasContext/index.html b/Resources/CGCanvasContextTest/index.html similarity index 100% rename from Resources/CGCanvasContext/index.html rename to Resources/CGCanvasContextTest/index.html diff --git a/Resources/CGCanvasContext/main.j b/Resources/CGCanvasContextTest/main.j similarity index 100% rename from Resources/CGCanvasContext/main.j rename to Resources/CGCanvasContextTest/main.j diff --git a/Resources/CGPath/Jakefile b/Resources/CGPath/Jakefile deleted file mode 100644 index 6d194c99d..000000000 --- a/Resources/CGPath/Jakefile +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Jakefile - * CGPath - * - * Created by You on May 23, 2013. - * Copyright 2013, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CGPath", function(task) -{ - ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; - - if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - - task.setBuildIntermediatesPath(FILE.join("Build", "CGPath.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CGPath"); - task.setIdentifier("com.yourcompany.CGPath"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CGPath"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CGPath"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CGPath", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CGPath", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CGPath")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CGPath"), FILE.join("Build", "Deployment", "CGPath")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CGPath")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CGPath"), FILE.join("Build", "Desktop", "CGPath", "CGPath.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CGPath", "CGPath.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CGPath")); - print("----------------------------"); -} diff --git a/Resources/CGPath/AppController.j b/Resources/CGPathTest/AppController.j similarity index 100% rename from Resources/CGPath/AppController.j rename to Resources/CGPathTest/AppController.j diff --git a/Resources/CGPath/Info.plist b/Resources/CGPathTest/Info.plist similarity index 100% rename from Resources/CGPath/Info.plist rename to Resources/CGPathTest/Info.plist diff --git a/Resources/CGPathTest/Jakefile b/Resources/CGPathTest/Jakefile new file mode 100644 index 000000000..c103a3db0 --- /dev/null +++ b/Resources/CGPathTest/Jakefile @@ -0,0 +1,98 @@ +/* + * Jakefile + * CGPathTest + * + * Created by You on May 23, 2013. + * Copyright 2013, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CGPathTest", function(task) +{ + ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; + + if (configuration === "Debug") + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + + task.setBuildIntermediatesPath(path.join("Build", "CGPathTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CGPathTest"); + task.setIdentifier("com.yourcompany.CGPathTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CGPathTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CGPathTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CGPathTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CGPathTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CGPathTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CGPathTest"), path.join("Build", "Deployment", "CGPathTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CGPathTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CGPathTest"), path.join("Build", "Desktop", "CGPathTest", "CGPathTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CGPathTest", "CGPathTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CGPathTest")); + console.log("----------------------------"); +} diff --git a/Resources/CGPath/Resources/spinner.gif b/Resources/CGPathTest/Resources/spinner.gif similarity index 100% rename from Resources/CGPath/Resources/spinner.gif rename to Resources/CGPathTest/Resources/spinner.gif diff --git a/Resources/CGPath/index-debug.html b/Resources/CGPathTest/index-debug.html similarity index 100% rename from Resources/CGPath/index-debug.html rename to Resources/CGPathTest/index-debug.html diff --git a/Resources/CGPath/index.html b/Resources/CGPathTest/index.html similarity index 100% rename from Resources/CGPath/index.html rename to Resources/CGPathTest/index.html diff --git a/Resources/CGPath/main.j b/Resources/CGPathTest/main.j similarity index 100% rename from Resources/CGPath/main.j rename to Resources/CGPathTest/main.j diff --git a/Resources/CPAlertTest/Jakefile b/Resources/CPAlertTest/Jakefile index a776e282b..8af8084fe 100644 --- a/Resources/CPAlertTest/Jakefile +++ b/Resources/CPAlertTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, WireLoad, LLC All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPAlertTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPAlertTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPAlertTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPAlertTest"); task.setIdentifier("com.yourcompany.CPAlertTest"); @@ -26,7 +26,7 @@ app ("CPAlertTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPAlertTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPAlertTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPAlertTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPAlertTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPAlertTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPAlertTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPAlertTest"), FILE.join("Build", "Deployment", "CPAlertTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPAlertTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPAlertTest"), path.join("Build", "Deployment", "CPAlertTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPAlertTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPAlertTest"), FILE.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPAlertTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPAlertTest"), path.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPAlertTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPAlertTest")); + console.log("----------------------------"); } diff --git a/Resources/CPAnimatablePropertyContainerTest/Jakefile b/Resources/CPAnimatablePropertyContainerTest/Jakefile index 142cbe5ad..6322c356e 100644 --- a/Resources/CPAnimatablePropertyContainerTest/Jakefile +++ b/Resources/CPAnimatablePropertyContainerTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPAnimatablePropertyContainerTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPAnimatablePropertyContainerTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPAnimatablePropertyContainerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPAnimatablePropertyContainerTest"); task.setIdentifier("com.yourcompany.CPAnimatablePropertyContainerTest"); @@ -26,7 +26,7 @@ app ("CPAnimatablePropertyContainerTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPAnimatablePropertyContainerTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPAnimatablePropertyContainerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPAnimatablePropertyContainerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPAnimatablePropertyContainerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPAnimatablePropertyContainerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPAnimatablePropertyContainerTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPAnimatablePropertyContainerTest"), FILE.join("Build", "Deployment", "CPAnimatablePropertyContainerTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPAnimatablePropertyContainerTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPAnimatablePropertyContainerTest"), path.join("Build", "Deployment", "CPAnimatablePropertyContainerTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPAnimatablePropertyContainerTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPAnimatablePropertyContainerTest"), FILE.join("Build", "Desktop", "CPAnimatablePropertyContainerTest", "CPAnimatablePropertyContainerTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPAnimatablePropertyContainerTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPAnimatablePropertyContainerTest"), path.join("Build", "Desktop", "CPAnimatablePropertyContainerTest", "CPAnimatablePropertyContainerTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPAnimatablePropertyContainerTest", "CPAnimatablePropertyContainerTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPAnimatablePropertyContainerTest", "CPAnimatablePropertyContainerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPAnimatablePropertyContainerTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPAnimatablePropertyContainerTest")); + console.log("----------------------------"); } diff --git a/Resources/CPAnimationContextTest/Jakefile b/Resources/CPAnimationContextTest/Jakefile index c3db5628c..8a53ad02e 100644 --- a/Resources/CPAnimationContextTest/Jakefile +++ b/Resources/CPAnimationContextTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2017, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPAnimationContextTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPAnimationContextTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPAnimationContextTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPAnimationContextTest"); task.setIdentifier("com.yourcompany.CPAnimationContextTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPAnimationContextTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPAnimationContextTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPAnimationContextTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPAnimationContextTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPAnimationContextTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPAnimationTest/Jakefile b/Resources/CPAnimationTest/Jakefile index a7cfaae61..1e727f3af 100644 --- a/Resources/CPAnimationTest/Jakefile +++ b/Resources/CPAnimationTest/Jakefile @@ -1,9 +1,9 @@ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPAnimationTest"; @@ -13,10 +13,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPAnimationTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPAnimationTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPAnimationTest"); task.setIdentifier("com.yourcompany.CPAnimationTest"); @@ -24,7 +24,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPAnimationTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,45 +59,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPAnimationTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPAnimationTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPAnimationTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPAnimationTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -106,14 +106,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -121,17 +121,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -141,34 +141,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPBinder-echo-bug/Jakefile b/Resources/CPBinder-echo-bug/Jakefile deleted file mode 100644 index eb1b44f6f..000000000 --- a/Resources/CPBinder-echo-bug/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * CPBinder-echo-bug - * - * Created by You on March 29, 2012. - * Copyright 2012, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPBinderEchoBug", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPBinderEchoBug.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPBinder-echo-bug"); - task.setIdentifier("com.yourcompany.CPBinderEchoBug"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPBinder-echo-bug"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPBinderEchoBug"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPBinderEchoBug", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPBinderEchoBug", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPBinderEchoBug")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPBinderEchoBug"), FILE.join("Build", "Deployment", "CPBinderEchoBug")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPBinderEchoBug")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPBinderEchoBug"), FILE.join("Build", "Desktop", "CPBinderEchoBug", "CPBinderEchoBug.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPBinderEchoBug", "CPBinderEchoBug.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPBinderEchoBug")); - print("----------------------------"); -} diff --git a/Resources/CPBinder-echo-bug/AppController.j b/Resources/CPBinderEchoBug/AppController.j similarity index 100% rename from Resources/CPBinder-echo-bug/AppController.j rename to Resources/CPBinderEchoBug/AppController.j diff --git a/Resources/CPBinder-echo-bug/Info.plist b/Resources/CPBinderEchoBug/Info.plist similarity index 100% rename from Resources/CPBinder-echo-bug/Info.plist rename to Resources/CPBinderEchoBug/Info.plist diff --git a/Resources/CPBinderEchoBug/Jakefile b/Resources/CPBinderEchoBug/Jakefile new file mode 100644 index 000000000..d7b0d6ad0 --- /dev/null +++ b/Resources/CPBinderEchoBug/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CPBinderEchoBug + * + * Created by You on March 29, 2012. + * Copyright 2012, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPBinderEchoBug", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPBinderEchoBug.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPBinderEchoBug"); + task.setIdentifier("com.yourcompany.CPBinderEchoBug"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPBinderEchoBug"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPBinderEchoBug"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPBinderEchoBug", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPBinderEchoBug", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPBinderEchoBug"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPBinderEchoBug"), path.join("Build", "Deployment", "CPBinderEchoBug")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPBinderEchoBug"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPBinderEchoBug"), path.join("Build", "Desktop", "CPBinderEchoBug", "CPBinderEchoBug.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPBinderEchoBug", "CPBinderEchoBug.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPBinderEchoBug")); + console.log("----------------------------"); +} diff --git a/Resources/CPBinder-echo-bug/Resources/spinner.gif b/Resources/CPBinderEchoBug/Resources/spinner.gif similarity index 100% rename from Resources/CPBinder-echo-bug/Resources/spinner.gif rename to Resources/CPBinderEchoBug/Resources/spinner.gif diff --git a/Resources/CPBinder-echo-bug/index-debug.html b/Resources/CPBinderEchoBug/index-debug.html similarity index 100% rename from Resources/CPBinder-echo-bug/index-debug.html rename to Resources/CPBinderEchoBug/index-debug.html diff --git a/Resources/CPBinder-echo-bug/index.html b/Resources/CPBinderEchoBug/index.html similarity index 100% rename from Resources/CPBinder-echo-bug/index.html rename to Resources/CPBinderEchoBug/index.html diff --git a/Resources/CPBinder-echo-bug/main.j b/Resources/CPBinderEchoBug/main.j similarity index 100% rename from Resources/CPBinder-echo-bug/main.j rename to Resources/CPBinderEchoBug/main.j diff --git a/Resources/CPBoxTest/Jakefile b/Resources/CPBoxTest/Jakefile index 9b5faa62e..7465ed2b8 100644 --- a/Resources/CPBoxTest/Jakefile +++ b/Resources/CPBoxTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPBoxTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPBoxTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPBoxTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPBoxTest"); task.setIdentifier("com.yourcompany.CPBoxTest"); @@ -26,7 +26,7 @@ app ("CPBoxTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPBoxTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPBoxTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPBoxTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPBoxTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPBoxTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPBoxTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPBoxTest"), FILE.join("Build", "Deployment", "CPBoxTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPBoxTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPBoxTest"), path.join("Build", "Deployment", "CPBoxTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPBoxTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPBoxTest"), FILE.join("Build", "Desktop", "CPBoxTest", "CPBoxTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPBoxTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPBoxTest"), path.join("Build", "Desktop", "CPBoxTest", "CPBoxTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPBoxTest", "CPBoxTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPBoxTest", "CPBoxTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPBoxTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPBoxTest")); + console.log("----------------------------"); } diff --git a/Resources/CPBrowserTest/Jakefile b/Resources/CPBrowserTest/Jakefile index 542de14fd..6207adf86 100644 --- a/Resources/CPBrowserTest/Jakefile +++ b/Resources/CPBrowserTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPBrowserTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPBrowserTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPBrowserTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPBrowserTest"); task.setIdentifier("com.yourcompany.CPBrowserTest"); @@ -26,7 +26,7 @@ app ("CPBrowserTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPBrowserTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/*")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -39,9 +39,9 @@ app ("CPBrowserTest", function(task) function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPBrowserTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPBrowserTest")); + console.log("----------------------------"); } task ("default", ["CPBrowserTest"], function() @@ -65,17 +65,17 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPBrowserTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPBrowserTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPBrowserTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPBrowserTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPBrowserTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPBrowserTest"), FILE.join("Build", "Deployment", "CPBrowserTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPBrowserTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPBrowserTest"), path.join("Build", "Deployment", "CPBrowserTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); diff --git a/Resources/CPButtonBarTest/Jakefile b/Resources/CPButtonBarTest/Jakefile index 542de14fd..6207adf86 100644 --- a/Resources/CPButtonBarTest/Jakefile +++ b/Resources/CPButtonBarTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPBrowserTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPBrowserTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPBrowserTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPBrowserTest"); task.setIdentifier("com.yourcompany.CPBrowserTest"); @@ -26,7 +26,7 @@ app ("CPBrowserTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPBrowserTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/*")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -39,9 +39,9 @@ app ("CPBrowserTest", function(task) function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPBrowserTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPBrowserTest")); + console.log("----------------------------"); } task ("default", ["CPBrowserTest"], function() @@ -65,17 +65,17 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPBrowserTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPBrowserTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPBrowserTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPBrowserTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPBrowserTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPBrowserTest"), FILE.join("Build", "Deployment", "CPBrowserTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPBrowserTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPBrowserTest"), path.join("Build", "Deployment", "CPBrowserTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); diff --git a/Resources/CPByteCountFormatter/Jakefile b/Resources/CPByteCountFormatter/Jakefile deleted file mode 100644 index b46d57365..000000000 --- a/Resources/CPByteCountFormatter/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPByteCountFormatter - * - * Created by You on February 10, 2013. - * Copyright 2013, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPByteCountFormatter", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPByteCountFormatter.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPByteCountFormatter"); - task.setIdentifier("com.yourcompany.CPByteCountFormatter"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPByteCountFormatter"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPByteCountFormatter"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPByteCountFormatter", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPByteCountFormatter", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPByteCountFormatter")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPByteCountFormatter"), FILE.join("Build", "Deployment", "CPByteCountFormatter")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPByteCountFormatter")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPByteCountFormatter"), FILE.join("Build", "Desktop", "CPByteCountFormatter", "CPByteCountFormatter.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPByteCountFormatter", "CPByteCountFormatter.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPByteCountFormatter")); - print("----------------------------"); -} diff --git a/Resources/CPByteCountFormatter/AppController.j b/Resources/CPByteCountFormatterTest/AppController.j similarity index 100% rename from Resources/CPByteCountFormatter/AppController.j rename to Resources/CPByteCountFormatterTest/AppController.j diff --git a/Resources/CPByteCountFormatter/Info.plist b/Resources/CPByteCountFormatterTest/Info.plist similarity index 100% rename from Resources/CPByteCountFormatter/Info.plist rename to Resources/CPByteCountFormatterTest/Info.plist diff --git a/Resources/CPByteCountFormatterTest/Jakefile b/Resources/CPByteCountFormatterTest/Jakefile new file mode 100644 index 000000000..d65acb549 --- /dev/null +++ b/Resources/CPByteCountFormatterTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPByteCountFormatterTest + * + * Created by You on February 10, 2013. + * Copyright 2013, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPByteCountFormatterTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPByteCountFormatterTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPByteCountFormatterTest"); + task.setIdentifier("com.yourcompany.CPByteCountFormatterTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPByteCountFormatterTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPByteCountFormatterTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPByteCountFormatterTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPByteCountFormatterTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPByteCountFormatterTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPByteCountFormatterTest"), path.join("Build", "Deployment", "CPByteCountFormatterTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPByteCountFormatterTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPByteCountFormatterTest"), path.join("Build", "Desktop", "CPByteCountFormatterTest", "CPByteCountFormatterTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPByteCountFormatterTest", "CPByteCountFormatterTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPByteCountFormatterTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPByteCountFormatter/Resources/MainMenu.cib b/Resources/CPByteCountFormatterTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPByteCountFormatter/Resources/MainMenu.cib rename to Resources/CPByteCountFormatterTest/Resources/MainMenu.cib diff --git a/Resources/CPByteCountFormatter/Resources/MainMenu.xib b/Resources/CPByteCountFormatterTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPByteCountFormatter/Resources/MainMenu.xib rename to Resources/CPByteCountFormatterTest/Resources/MainMenu.xib diff --git a/Resources/CPByteCountFormatter/Resources/spinner.gif b/Resources/CPByteCountFormatterTest/Resources/spinner.gif similarity index 100% rename from Resources/CPByteCountFormatter/Resources/spinner.gif rename to Resources/CPByteCountFormatterTest/Resources/spinner.gif diff --git a/Resources/CPByteCountFormatter/index-debug.html b/Resources/CPByteCountFormatterTest/index-debug.html similarity index 100% rename from Resources/CPByteCountFormatter/index-debug.html rename to Resources/CPByteCountFormatterTest/index-debug.html diff --git a/Resources/CPByteCountFormatter/index.html b/Resources/CPByteCountFormatterTest/index.html similarity index 100% rename from Resources/CPByteCountFormatter/index.html rename to Resources/CPByteCountFormatterTest/index.html diff --git a/Resources/CPByteCountFormatter/main.j b/Resources/CPByteCountFormatterTest/main.j similarity index 100% rename from Resources/CPByteCountFormatter/main.j rename to Resources/CPByteCountFormatterTest/main.j diff --git a/Resources/CPCollectionViewNibTest/Jakefile b/Resources/CPCollectionViewNibTest/Jakefile index f9718dfcd..1917b32f1 100644 --- a/Resources/CPCollectionViewNibTest/Jakefile +++ b/Resources/CPCollectionViewNibTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPCollectionViewNibTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPCollectionViewNibTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPCollectionViewNibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPCollectionViewNibTest"); task.setIdentifier("com.yourcompany.CPCollectionViewNibTest"); @@ -26,7 +26,7 @@ app ("CPCollectionViewNibTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPCollectionViewNibTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPCollectionViewNibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPCollectionViewNibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPCollectionViewNibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPCollectionViewNibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPCollectionViewNibTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPCollectionViewNibTest"), FILE.join("Build", "Deployment", "CPCollectionViewNibTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPCollectionViewNibTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPCollectionViewNibTest"), path.join("Build", "Deployment", "CPCollectionViewNibTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPCollectionViewNibTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPCollectionViewNibTest"), FILE.join("Build", "Desktop", "CPCollectionViewNibTest", "CPCollectionViewNibTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPCollectionViewNibTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPCollectionViewNibTest"), path.join("Build", "Desktop", "CPCollectionViewNibTest", "CPCollectionViewNibTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPCollectionViewNibTest", "CPCollectionViewNibTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPCollectionViewNibTest", "CPCollectionViewNibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPCollectionViewNibTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPCollectionViewNibTest")); + console.log("----------------------------"); } diff --git a/Resources/CPColor-CPImage-description/AppController.j b/Resources/CPColorCPImageDescriptionTest/AppController.j similarity index 100% rename from Resources/CPColor-CPImage-description/AppController.j rename to Resources/CPColorCPImageDescriptionTest/AppController.j diff --git a/Resources/CPColor-CPImage-description/Info.plist b/Resources/CPColorCPImageDescriptionTest/Info.plist similarity index 100% rename from Resources/CPColor-CPImage-description/Info.plist rename to Resources/CPColorCPImageDescriptionTest/Info.plist diff --git a/Resources/CPColor-CPImage-description/Jakefile b/Resources/CPColorCPImageDescriptionTest/Jakefile similarity index 53% rename from Resources/CPColor-CPImage-description/Jakefile rename to Resources/CPColorCPImageDescriptionTest/Jakefile index 25523f130..41831f770 100644 --- a/Resources/CPColor-CPImage-description/Jakefile +++ b/Resources/CPColorCPImageDescriptionTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("test", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "test.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("test"); task.setIdentifier("com.aparajita.test"); @@ -26,7 +26,7 @@ app ("test", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("test"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "test")); - OS.system(["press", "-f", FILE.join("Build", "Release", "test"), FILE.join("Build", "Deployment", "test")]); + fs.mkdirSync(path.join("Build", "Deployment", "test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "test"), path.join("Build", "Deployment", "test")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "test")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "test"), FILE.join("Build", "Desktop", "test", "test.app")); + fs.mkdirSync(path.join("Build", "Desktop", "test"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "test"), path.join("Build", "Desktop", "test", "test.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "test")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "test")); + console.log("----------------------------"); } diff --git a/Resources/CPColor-CPImage-description/Resources/MainMenu.cib b/Resources/CPColorCPImageDescriptionTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPColor-CPImage-description/Resources/MainMenu.cib rename to Resources/CPColorCPImageDescriptionTest/Resources/MainMenu.cib diff --git a/Resources/CPColor-CPImage-description/Resources/MainMenu.xib b/Resources/CPColorCPImageDescriptionTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPColor-CPImage-description/Resources/MainMenu.xib rename to Resources/CPColorCPImageDescriptionTest/Resources/MainMenu.xib diff --git a/Resources/CPColor-CPImage-description/Resources/add1-32.png b/Resources/CPColorCPImageDescriptionTest/Resources/add1-32.png similarity index 100% rename from Resources/CPColor-CPImage-description/Resources/add1-32.png rename to Resources/CPColorCPImageDescriptionTest/Resources/add1-32.png diff --git a/Resources/CPColor-CPImage-description/Resources/spinner.gif b/Resources/CPColorCPImageDescriptionTest/Resources/spinner.gif similarity index 100% rename from Resources/CPColor-CPImage-description/Resources/spinner.gif rename to Resources/CPColorCPImageDescriptionTest/Resources/spinner.gif diff --git a/Resources/CPColor-CPImage-description/index-debug.html b/Resources/CPColorCPImageDescriptionTest/index-debug.html similarity index 100% rename from Resources/CPColor-CPImage-description/index-debug.html rename to Resources/CPColorCPImageDescriptionTest/index-debug.html diff --git a/Resources/CPColor-CPImage-description/index.html b/Resources/CPColorCPImageDescriptionTest/index.html similarity index 100% rename from Resources/CPColor-CPImage-description/index.html rename to Resources/CPColorCPImageDescriptionTest/index.html diff --git a/Resources/CPColor-CPImage-description/main.j b/Resources/CPColorCPImageDescriptionTest/main.j similarity index 100% rename from Resources/CPColor-CPImage-description/main.j rename to Resources/CPColorCPImageDescriptionTest/main.j diff --git a/Resources/CPColorWellBindings/Jakefile b/Resources/CPColorWellBindings/Jakefile deleted file mode 100644 index ce8c5b94b..000000000 --- a/Resources/CPColorWellBindings/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPColorWellBindings - * - * Created by You on January 27, 2012. - * Copyright 2012, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPColorWellBindings", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPColorWellBindings.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPColorWellBindings"); - task.setIdentifier("com.yourcompany.CPColorWellBindings"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPColorWellBindings"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPColorWellBindings"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPColorWellBindings", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPColorWellBindings", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPColorWellBindings")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPColorWellBindings"), FILE.join("Build", "Deployment", "CPColorWellBindings")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPColorWellBindings")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPColorWellBindings"), FILE.join("Build", "Desktop", "CPColorWellBindings", "CPColorWellBindings.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPColorWellBindings", "CPColorWellBindings.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPColorWellBindings")); - print("----------------------------"); -} diff --git a/Resources/CPColorWellBindings/AppController.j b/Resources/CPColorWellBindingsTest/AppController.j similarity index 100% rename from Resources/CPColorWellBindings/AppController.j rename to Resources/CPColorWellBindingsTest/AppController.j diff --git a/Resources/CPColorWellBindings/Info.plist b/Resources/CPColorWellBindingsTest/Info.plist similarity index 100% rename from Resources/CPColorWellBindings/Info.plist rename to Resources/CPColorWellBindingsTest/Info.plist diff --git a/Resources/CPColorWellBindingsTest/Jakefile b/Resources/CPColorWellBindingsTest/Jakefile new file mode 100644 index 000000000..3b6b54da8 --- /dev/null +++ b/Resources/CPColorWellBindingsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPColorWellBindingsTest + * + * Created by You on January 27, 2012. + * Copyright 2012, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPColorWellBindingsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPColorWellBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPColorWellBindingsTest"); + task.setIdentifier("com.yourcompany.CPColorWellBindingsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPColorWellBindingsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPColorWellBindingsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPColorWellBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPColorWellBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPColorWellBindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPColorWellBindingsTest"), path.join("Build", "Deployment", "CPColorWellBindingsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPColorWellBindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPColorWellBindingsTest"), path.join("Build", "Desktop", "CPColorWellBindingsTest", "CPColorWellBindingsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPColorWellBindingsTest", "CPColorWellBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPColorWellBindingsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPColorWellBindings/Resources/MainMenu.cib b/Resources/CPColorWellBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPColorWellBindings/Resources/MainMenu.cib rename to Resources/CPColorWellBindingsTest/Resources/MainMenu.cib diff --git a/Resources/CPColorWellBindings/Resources/MainMenu.xib b/Resources/CPColorWellBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPColorWellBindings/Resources/MainMenu.xib rename to Resources/CPColorWellBindingsTest/Resources/MainMenu.xib diff --git a/Resources/CPColorWellBindings/Resources/spinner.gif b/Resources/CPColorWellBindingsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPColorWellBindings/Resources/spinner.gif rename to Resources/CPColorWellBindingsTest/Resources/spinner.gif diff --git a/Resources/CPColorWellBindings/index-debug.html b/Resources/CPColorWellBindingsTest/index-debug.html similarity index 100% rename from Resources/CPColorWellBindings/index-debug.html rename to Resources/CPColorWellBindingsTest/index-debug.html diff --git a/Resources/CPColorWellBindings/index.html b/Resources/CPColorWellBindingsTest/index.html similarity index 100% rename from Resources/CPColorWellBindings/index.html rename to Resources/CPColorWellBindingsTest/index.html diff --git a/Resources/CPColorWellBindings/main.j b/Resources/CPColorWellBindingsTest/main.j similarity index 100% rename from Resources/CPColorWellBindings/main.j rename to Resources/CPColorWellBindingsTest/main.j diff --git a/Resources/CPComboBoxTest/Jakefile b/Resources/CPComboBoxTest/Jakefile index a83c45d07..6eef59818 100644 --- a/Resources/CPComboBoxTest/Jakefile +++ b/Resources/CPComboBoxTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("test", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "test.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("test"); task.setIdentifier("com.aparajita.test"); @@ -26,7 +26,7 @@ app ("test", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("test"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "test")); - OS.system(["press", "-f", FILE.join("Build", "Release", "test"), FILE.join("Build", "Deployment", "test")]); + fs.mkdirSync(path.join("Build", "Deployment", "test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "test"), path.join("Build", "Deployment", "test")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "test")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "test"), FILE.join("Build", "Desktop", "test", "test.app")); + fs.mkdirSync(path.join("Build", "Desktop", "test"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "test"), path.join("Build", "Desktop", "test", "test.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "test")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "test")); + console.log("----------------------------"); } diff --git a/Resources/CPControlSize/AppController.j b/Resources/CPControlSizeTest/AppController.j similarity index 100% rename from Resources/CPControlSize/AppController.j rename to Resources/CPControlSizeTest/AppController.j diff --git a/Resources/CPControlSize/Info.plist b/Resources/CPControlSizeTest/Info.plist similarity index 100% rename from Resources/CPControlSize/Info.plist rename to Resources/CPControlSizeTest/Info.plist diff --git a/Resources/CPControlSize/Jakefile b/Resources/CPControlSizeTest/Jakefile similarity index 56% rename from Resources/CPControlSize/Jakefile rename to Resources/CPControlSizeTest/Jakefile index bf993fbdd..accda81cb 100644 --- a/Resources/CPControlSize/Jakefile +++ b/Resources/CPControlSizeTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CPControlSize + * CPControlSizeTest * * Created by You on August 11, 2014. * Copyright 2014, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CPControlSize"; + projectName = "CPControlSizeTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPControlSize.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPControlSizeTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CPControlSize"); - task.setIdentifier("com.yourcompany.CPControlSize"); + task.setProductName("CPControlSizeTest"); + task.setIdentifier("com.yourcompany.CPControlSizeTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPControlSize"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("CPControlSizeTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPControlSize.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPControlSizeTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPControlSize.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPControlSizeTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPControlSize/Resources/MainMenu.cib b/Resources/CPControlSizeTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPControlSize/Resources/MainMenu.cib rename to Resources/CPControlSizeTest/Resources/MainMenu.cib diff --git a/Resources/CPControlSize/Resources/MainMenu.xib b/Resources/CPControlSizeTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPControlSize/Resources/MainMenu.xib rename to Resources/CPControlSizeTest/Resources/MainMenu.xib diff --git a/Resources/CPControlSize/index-debug.html b/Resources/CPControlSizeTest/index-debug.html similarity index 100% rename from Resources/CPControlSize/index-debug.html rename to Resources/CPControlSizeTest/index-debug.html diff --git a/Resources/CPControlSize/index.html b/Resources/CPControlSizeTest/index.html similarity index 100% rename from Resources/CPControlSize/index.html rename to Resources/CPControlSizeTest/index.html diff --git a/Resources/CPControlSize/main.j b/Resources/CPControlSizeTest/main.j similarity index 100% rename from Resources/CPControlSize/main.j rename to Resources/CPControlSizeTest/main.j diff --git a/Resources/CPCursor/AppController.j b/Resources/CPCursorTest/AppController.j similarity index 100% rename from Resources/CPCursor/AppController.j rename to Resources/CPCursorTest/AppController.j diff --git a/Resources/CPCursor/Info.plist b/Resources/CPCursorTest/Info.plist similarity index 100% rename from Resources/CPCursor/Info.plist rename to Resources/CPCursorTest/Info.plist diff --git a/Resources/CPCursor/Jakefile b/Resources/CPCursorTest/Jakefile similarity index 58% rename from Resources/CPCursor/Jakefile rename to Resources/CPCursorTest/Jakefile index 597472c75..d6a85e840 100644 --- a/Resources/CPCursor/Jakefile +++ b/Resources/CPCursorTest/Jakefile @@ -1,29 +1,29 @@ /* * Jakefile - * CursorTest + * CPCursorTest * * Created by You on November 6, 2009. * Copyright 2009, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), task = require("jake").task, FileList = require("jake").FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; -app ("CursorTest", function(task) +app ("CPCursorTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CursorTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPCursorTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CursorTest"); - task.setIdentifier("com.yourcompany.CursorTest"); + task.setProductName("CPCursorTest"); + task.setIdentifier("com.yourcompany.CPCursorTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CursorTest"); + task.setSummary("CPCursorTest"); task.setSources(new FileList("**/*.j")); task.setResources(new FileList("Resources/*")); task.setIndexFilePath("index.html"); @@ -35,4 +35,4 @@ app ("CursorTest", function(task) task.setCompilerFlags("-O"); }); -task ("default", ["CursorTest"]); +task ("default", ["CPCursorTest"]); diff --git a/Resources/CPCursor/Resources/spinner.gif b/Resources/CPCursorTest/Resources/spinner.gif similarity index 100% rename from Resources/CPCursor/Resources/spinner.gif rename to Resources/CPCursorTest/Resources/spinner.gif diff --git a/Resources/CPCursor/index-debug.html b/Resources/CPCursorTest/index-debug.html similarity index 100% rename from Resources/CPCursor/index-debug.html rename to Resources/CPCursorTest/index-debug.html diff --git a/Resources/CPCursor/index.html b/Resources/CPCursorTest/index.html similarity index 100% rename from Resources/CPCursor/index.html rename to Resources/CPCursorTest/index.html diff --git a/Resources/CPCursor/main.j b/Resources/CPCursorTest/main.j similarity index 100% rename from Resources/CPCursor/main.j rename to Resources/CPCursorTest/main.j diff --git a/Resources/CPDateFormatterTest/Jakefile b/Resources/CPDateFormatterTest/Jakefile index 24c7daa20..2050e6a59 100644 --- a/Resources/CPDateFormatterTest/Jakefile +++ b/Resources/CPDateFormatterTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2013, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPDateFormatterTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPDateFormatterTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPDateFormatterTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPDateFormatterTest"); task.setIdentifier("com.yourcompany.CPDateFormatterTest"); @@ -26,7 +26,7 @@ app ("CPDateFormatterTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPDateFormatterTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPDateFormatterTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPDateFormatterTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPDateFormatterTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPDateFormatterTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPDateFormatterTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPDateFormatterTest"), FILE.join("Build", "Deployment", "CPDateFormatterTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPDateFormatterTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPDateFormatterTest"), path.join("Build", "Deployment", "CPDateFormatterTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPDateFormatterTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPDateFormatterTest"), FILE.join("Build", "Desktop", "CPDateFormatterTest", "CPDateFormatterTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPDateFormatterTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPDateFormatterTest"), path.join("Build", "Desktop", "CPDateFormatterTest", "CPDateFormatterTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPDateFormatterTest", "CPDateFormatterTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPDateFormatterTest", "CPDateFormatterTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPDateFormatterTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPDateFormatterTest")); + console.log("----------------------------"); } diff --git a/Resources/CPDatePickerTest/Jakefile b/Resources/CPDatePickerTest/Jakefile index 693ded808..c134e40b4 100644 --- a/Resources/CPDatePickerTest/Jakefile +++ b/Resources/CPDatePickerTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2013, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPDatePickerTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPDatePickerTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPDatePickerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPDatePickerTest"); task.setIdentifier("com.yourcompany.CPDatePickerTest"); @@ -26,7 +26,7 @@ app ("CPDatePickerTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPDatePickerTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPDatePickerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPDatePickerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPDatePickerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPDatePickerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPDatePickerTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPDatePickerTest"), FILE.join("Build", "Deployment", "CPDatePickerTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPDatePickerTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPDatePickerTest"), path.join("Build", "Deployment", "CPDatePickerTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPDatePickerTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPDatePickerTest"), FILE.join("Build", "Desktop", "CPDatePickerTest", "CPDatePickerTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPDatePickerTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPDatePickerTest"), path.join("Build", "Desktop", "CPDatePickerTest", "CPDatePickerTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPDatePickerTest", "CPDatePickerTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPDatePickerTest", "CPDatePickerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPDatePickerTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPDatePickerTest")); + console.log("----------------------------"); } diff --git a/Resources/CPDictionaryControllerTest/Jakefile b/Resources/CPDictionaryControllerTest/Jakefile index 84548c48d..951686000 100644 --- a/Resources/CPDictionaryControllerTest/Jakefile +++ b/Resources/CPDictionaryControllerTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2013, SGL Studio, BBDO Toronto All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPDictionaryControllerTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPDictionaryControllerTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPDictionaryControllerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPDictionaryControllerTest"); task.setIdentifier("com.yourcompany.CPDictionaryControllerTest"); @@ -26,7 +26,7 @@ app ("CPDictionaryControllerTest", function(task) task.setAuthor("SGL Studio, BBDO Toronto"); task.setEmail("Blair.Duncan@BBDO.com"); task.setSummary("CPDictionaryControllerTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPDictionaryControllerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPDictionaryControllerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPDictionaryControllerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPDictionaryControllerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPDictionaryControllerTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPDictionaryControllerTest"), FILE.join("Build", "Deployment", "CPDictionaryControllerTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPDictionaryControllerTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPDictionaryControllerTest"), path.join("Build", "Deployment", "CPDictionaryControllerTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPDictionaryControllerTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPDictionaryControllerTest"), FILE.join("Build", "Desktop", "CPDictionaryControllerTest", "CPDictionaryControllerTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPDictionaryControllerTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPDictionaryControllerTest"), path.join("Build", "Desktop", "CPDictionaryControllerTest", "CPDictionaryControllerTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPDictionaryControllerTest", "CPDictionaryControllerTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPDictionaryControllerTest", "CPDictionaryControllerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPDictionaryControllerTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPDictionaryControllerTest")); + console.log("----------------------------"); } diff --git a/Resources/CPFormatterTest/Jakefile b/Resources/CPFormatterTest/Jakefile index 4b4864d37..8c4b41d16 100644 --- a/Resources/CPFormatterTest/Jakefile +++ b/Resources/CPFormatterTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPFormatterTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPFormatterTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPFormatterTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPFormatterTest"); task.setIdentifier("com.aparajita.CPFormatterTest"); @@ -26,7 +26,7 @@ app ("CPFormatterTest", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPFormatterTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPFormatterTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPFormatterTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPFormatterTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPFormatterTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPFormatterTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPFormatterTest"), FILE.join("Build", "Deployment", "CPFormatterTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPFormatterTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPFormatterTest"), path.join("Build", "Deployment", "CPFormatterTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPFormatterTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPFormatterTest"), FILE.join("Build", "Desktop", "CPFormatterTest", "CPFormatterTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPFormatterTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPFormatterTest"), path.join("Build", "Desktop", "CPFormatterTest", "CPFormatterTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPFormatterTest", "CPFormatterTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPFormatterTest", "CPFormatterTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPFormatterTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPFormatterTest")); + console.log("----------------------------"); } diff --git a/Resources/CPImageAndTextViewImageScaling/AppController.j b/Resources/CPImageAndTextViewImageScalingTest/AppController.j similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/AppController.j rename to Resources/CPImageAndTextViewImageScalingTest/AppController.j diff --git a/Resources/CPImageAndTextViewImageScaling/Info.plist b/Resources/CPImageAndTextViewImageScalingTest/Info.plist similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/Info.plist rename to Resources/CPImageAndTextViewImageScalingTest/Info.plist diff --git a/Resources/CPImageAndTextViewImageScaling/Jakefile b/Resources/CPImageAndTextViewImageScalingTest/Jakefile similarity index 59% rename from Resources/CPImageAndTextViewImageScaling/Jakefile rename to Resources/CPImageAndTextViewImageScalingTest/Jakefile index b29436be6..da40aa916 100644 --- a/Resources/CPImageAndTextViewImageScaling/Jakefile +++ b/Resources/CPImageAndTextViewImageScalingTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CPImageAndTextViewImageScaling + * CPImageAndTextViewImageScalingTest * * Created by You on September 20, 2020. * Copyright 2020, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CPImageAndTextViewImageScaling"; + projectName = "CPImageAndTextViewImageScalingTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPImageAndTextViewImageScaling.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPImageAndTextViewImageScalingTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CPImageAndTextViewImageScaling"); - task.setIdentifier("com.yourcompany.CPImageAndTextViewImageScaling"); + task.setProductName("CPImageAndTextViewImageScalingTest"); + task.setIdentifier("com.yourcompany.CPImageAndTextViewImageScalingTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPImageAndTextViewImageScaling"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("CPImageAndTextViewImageScalingTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPImageAndTextViewImageScaling/Resources/MainMenu.cib b/Resources/CPImageAndTextViewImageScalingTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/Resources/MainMenu.cib rename to Resources/CPImageAndTextViewImageScalingTest/Resources/MainMenu.cib diff --git a/Resources/CPImageAndTextViewImageScaling/Resources/MainMenu.xib b/Resources/CPImageAndTextViewImageScalingTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/Resources/MainMenu.xib rename to Resources/CPImageAndTextViewImageScalingTest/Resources/MainMenu.xib diff --git a/Resources/CPImageAndTextViewImageScaling/Resources/cat.jpg b/Resources/CPImageAndTextViewImageScalingTest/Resources/cat.jpg similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/Resources/cat.jpg rename to Resources/CPImageAndTextViewImageScalingTest/Resources/cat.jpg diff --git a/Resources/CPImageAndTextViewImageScaling/Resources/little.png b/Resources/CPImageAndTextViewImageScalingTest/Resources/little.png similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/Resources/little.png rename to Resources/CPImageAndTextViewImageScalingTest/Resources/little.png diff --git a/Resources/CPImageAndTextViewImageScaling/index-debug.html b/Resources/CPImageAndTextViewImageScalingTest/index-debug.html similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/index-debug.html rename to Resources/CPImageAndTextViewImageScalingTest/index-debug.html diff --git a/Resources/CPImageAndTextViewImageScaling/index.html b/Resources/CPImageAndTextViewImageScalingTest/index.html similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/index.html rename to Resources/CPImageAndTextViewImageScalingTest/index.html diff --git a/Resources/CPImageAndTextViewImageScaling/main.j b/Resources/CPImageAndTextViewImageScalingTest/main.j similarity index 100% rename from Resources/CPImageAndTextViewImageScaling/main.j rename to Resources/CPImageAndTextViewImageScalingTest/main.j diff --git a/Resources/CPImageViewAlignmentScaling/Jakefile b/Resources/CPImageViewAlignmentScaling/Jakefile index e0f9f9845..8c65c5d02 100644 --- a/Resources/CPImageViewAlignmentScaling/Jakefile +++ b/Resources/CPImageViewAlignmentScaling/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPImageViewScaling", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPImageViewScaling.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPImageViewScaling.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPImageViewScaling"); task.setIdentifier("com.aparajita.CPImageViewScaling"); @@ -26,7 +26,7 @@ app ("CPImageViewScaling", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPImageViewScaling"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPImageViewScaling", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPImageViewScaling", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPImageViewScaling", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPImageViewScaling", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPImageViewScaling")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPImageViewScaling"), FILE.join("Build", "Deployment", "CPImageViewScaling")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPImageViewScaling"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPImageViewScaling"), path.join("Build", "Deployment", "CPImageViewScaling")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPImageViewScaling")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPImageViewScaling"), FILE.join("Build", "Desktop", "CPImageViewScaling", "CPImageViewScaling.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPImageViewScaling"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPImageViewScaling"), path.join("Build", "Desktop", "CPImageViewScaling", "CPImageViewScaling.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPImageViewScaling", "CPImageViewScaling.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPImageViewScaling", "CPImageViewScaling.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPImageViewScaling")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPImageViewScaling")); + console.log("----------------------------"); } diff --git a/Resources/CPImageViewTest/Jakefile b/Resources/CPImageViewTest/Jakefile index e129b8934..89b10a023 100644 --- a/Resources/CPImageViewTest/Jakefile +++ b/Resources/CPImageViewTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, SlevenBits Ltd All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPImageViewTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPImageViewTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPImageViewTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPImageViewTest"); task.setIdentifier("com.yourcompany.CPImageViewTest"); @@ -26,7 +26,7 @@ app ("CPImageViewTest", function(task) task.setAuthor("SlevenBits Ltd"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPImageViewTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPImageViewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPImageViewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPImageViewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPImageViewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPImageViewTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPImageViewTest"), FILE.join("Build", "Deployment", "CPImageViewTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPImageViewTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPImageViewTest"), path.join("Build", "Deployment", "CPImageViewTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPImageViewTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPImageViewTest"), FILE.join("Build", "Desktop", "CPImageViewTest", "CPImageViewTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPImageViewTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPImageViewTest"), path.join("Build", "Desktop", "CPImageViewTest", "CPImageViewTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPImageViewTest", "CPImageViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPImageViewTest", "CPImageViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPImageViewTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPImageViewTest")); + console.log("----------------------------"); } diff --git a/Resources/CPImageViewbindingsTest/Jakefile b/Resources/CPImageViewbindingsTest/Jakefile index 6bdfbd679..a8cc03300 100644 --- a/Resources/CPImageViewbindingsTest/Jakefile +++ b/Resources/CPImageViewbindingsTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPImageViewbindingsTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPImageViewbindingsTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPImageViewbindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPImageViewbindingsTest"); task.setIdentifier("com.yourcompany.CPImageViewbindingsTest"); @@ -26,7 +26,7 @@ app ("CPImageViewbindingsTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPImageViewbindingsTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPImageViewbindingsTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPImageViewbindingsTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPImageViewbindingsTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPImageViewbindingsTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPImageViewbindingsTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPImageViewbindingsTest"), FILE.join("Build", "Deployment", "CPImageViewbindingsTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPImageViewbindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPImageViewbindingsTest"), path.join("Build", "Deployment", "CPImageViewbindingsTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPImageViewbindingsTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPImageViewbindingsTest"), FILE.join("Build", "Desktop", "CPImageViewbindingsTest", "CPImageViewbindingsTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPImageViewbindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPImageViewbindingsTest"), path.join("Build", "Desktop", "CPImageViewbindingsTest", "CPImageViewbindingsTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPImageViewbindingsTest", "CPImageViewbindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPImageViewbindingsTest", "CPImageViewbindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPImageViewbindingsTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPImageViewbindingsTest")); + console.log("----------------------------"); } diff --git a/Resources/CPLanguageModelChatbot/Jakefile b/Resources/CPLanguageModelChatbot/Jakefile deleted file mode 100644 index bd57b7a0d..000000000 --- a/Resources/CPLanguageModelChatbot/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPLevelIndicator - * - * Created by Alexander Ljungberg on May 28, 2011. - * Copyright 2011, WireLoad All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPLevelIndicator", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPLevelIndicator.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPLevelIndicator"); - task.setIdentifier("com.yourcompany.CPLevelIndicator"); - task.setVersion("1.0"); - task.setAuthor("WireLoad"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPLevelIndicator"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPLevelIndicator"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPLevelIndicator", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPLevelIndicator", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPLevelIndicator")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Deployment", "CPLevelIndicator")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPLevelIndicator")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPLevelIndicator")); - print("----------------------------"); -} diff --git a/Resources/CPLanguageModelChatbot/AppController.j b/Resources/CPLanguageModelChatbotTest/AppController.j similarity index 100% rename from Resources/CPLanguageModelChatbot/AppController.j rename to Resources/CPLanguageModelChatbotTest/AppController.j diff --git a/Resources/CPLanguageModelChatbot/Info.plist b/Resources/CPLanguageModelChatbotTest/Info.plist similarity index 100% rename from Resources/CPLanguageModelChatbot/Info.plist rename to Resources/CPLanguageModelChatbotTest/Info.plist diff --git a/Resources/CPLanguageModelChatbotTest/Jakefile b/Resources/CPLanguageModelChatbotTest/Jakefile new file mode 100644 index 000000000..a68fee0de --- /dev/null +++ b/Resources/CPLanguageModelChatbotTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPLanguageModelChatbotTest + * + * Created by Alexander Ljungberg on May 28, 2011. + * Copyright 2011, WireLoad All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPLanguageModelChatbotTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPLanguageModelChatbotTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPLanguageModelChatbotTest"); + task.setIdentifier("com.yourcompany.CPLanguageModelChatbotTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPLanguageModelChatbotTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPLanguageModelChatbotTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPLanguageModelChatbotTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPLanguageModelChatbotTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPLanguageModelChatbotTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPLanguageModelChatbotTest"), path.join("Build", "Deployment", "CPLanguageModelChatbotTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPLanguageModelChatbotTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPLanguageModelChatbotTest"), path.join("Build", "Desktop", "CPLanguageModelChatbotTest", "CPLanguageModelChatbotTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPLanguageModelChatbotTest", "CPLanguageModelChatbotTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPLanguageModelChatbotTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPLanguageModelChatbot/Resources/spinner.gif b/Resources/CPLanguageModelChatbotTest/Resources/spinner.gif similarity index 100% rename from Resources/CPLanguageModelChatbot/Resources/spinner.gif rename to Resources/CPLanguageModelChatbotTest/Resources/spinner.gif diff --git a/Resources/CPLanguageModelChatbot/index-debug.html b/Resources/CPLanguageModelChatbotTest/index-debug.html similarity index 100% rename from Resources/CPLanguageModelChatbot/index-debug.html rename to Resources/CPLanguageModelChatbotTest/index-debug.html diff --git a/Resources/CPLanguageModelChatbot/index.html b/Resources/CPLanguageModelChatbotTest/index.html similarity index 100% rename from Resources/CPLanguageModelChatbot/index.html rename to Resources/CPLanguageModelChatbotTest/index.html diff --git a/Resources/CPLanguageModelChatbot/main.j b/Resources/CPLanguageModelChatbotTest/main.j similarity index 100% rename from Resources/CPLanguageModelChatbot/main.j rename to Resources/CPLanguageModelChatbotTest/main.j diff --git a/Resources/CPLevelIndicator/Jakefile b/Resources/CPLevelIndicator/Jakefile index bd57b7a0d..ba5cb126e 100644 --- a/Resources/CPLevelIndicator/Jakefile +++ b/Resources/CPLevelIndicator/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, WireLoad All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPLevelIndicator", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPLevelIndicator.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPLevelIndicator.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPLevelIndicator"); task.setIdentifier("com.yourcompany.CPLevelIndicator"); @@ -26,7 +26,7 @@ app ("CPLevelIndicator", function(task) task.setAuthor("WireLoad"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPLevelIndicator"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPLevelIndicator", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPLevelIndicator", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPLevelIndicator", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPLevelIndicator", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPLevelIndicator")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Deployment", "CPLevelIndicator")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPLevelIndicator"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPLevelIndicator"), path.join("Build", "Deployment", "CPLevelIndicator")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPLevelIndicator")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPLevelIndicator"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPLevelIndicator"), path.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPLevelIndicator")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPLevelIndicator")); + console.log("----------------------------"); } diff --git a/Resources/CPTextView/AppController.j b/Resources/CPLevelIndicatorTest/AppController.j similarity index 100% rename from Resources/CPTextView/AppController.j rename to Resources/CPLevelIndicatorTest/AppController.j diff --git a/Resources/CPMarkdownParser/Info.plist b/Resources/CPLevelIndicatorTest/Info.plist similarity index 100% rename from Resources/CPMarkdownParser/Info.plist rename to Resources/CPLevelIndicatorTest/Info.plist diff --git a/Resources/CPLevelIndicatorTest/Jakefile b/Resources/CPLevelIndicatorTest/Jakefile new file mode 100644 index 000000000..7bcaa6ac7 --- /dev/null +++ b/Resources/CPLevelIndicatorTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPLevelIndicatorTest + * + * Created by Alexander Ljungberg on May 28, 2011. + * Copyright 2011, WireLoad All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPLevelIndicatorTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPLevelIndicatorTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPLevelIndicatorTest"); + task.setIdentifier("com.yourcompany.CPLevelIndicatorTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPLevelIndicatorTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPLevelIndicatorTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPLevelIndicatorTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPLevelIndicatorTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPLevelIndicatorTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPLevelIndicatorTest"), path.join("Build", "Deployment", "CPLevelIndicatorTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPLevelIndicatorTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPLevelIndicatorTest"), path.join("Build", "Desktop", "CPLevelIndicatorTest", "CPLevelIndicatorTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPLevelIndicatorTest", "CPLevelIndicatorTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPLevelIndicatorTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPMarkdownParser/Resources/spinner.gif b/Resources/CPLevelIndicatorTest/Resources/spinner.gif similarity index 100% rename from Resources/CPMarkdownParser/Resources/spinner.gif rename to Resources/CPLevelIndicatorTest/Resources/spinner.gif diff --git a/Resources/CPMarkdownParser/index-debug.html b/Resources/CPLevelIndicatorTest/index-debug.html similarity index 100% rename from Resources/CPMarkdownParser/index-debug.html rename to Resources/CPLevelIndicatorTest/index-debug.html diff --git a/Resources/CPMarkdownParser/index.html b/Resources/CPLevelIndicatorTest/index.html similarity index 100% rename from Resources/CPMarkdownParser/index.html rename to Resources/CPLevelIndicatorTest/index.html diff --git a/Resources/CPTextView/main.j b/Resources/CPLevelIndicatorTest/main.j similarity index 100% rename from Resources/CPTextView/main.j rename to Resources/CPLevelIndicatorTest/main.j diff --git a/Resources/CPLocalizationTest/Jakefile b/Resources/CPLocalizationTest/Jakefile index 991dcebdc..a897e2035 100644 --- a/Resources/CPLocalizationTest/Jakefile +++ b/Resources/CPLocalizationTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2015, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPLocalizationTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPLocalizationTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPLocalizationTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPLocalizationTest"); task.setIdentifier("com.yourcompany.CPLocalizationTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPLocalizationTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPLocalizationTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPLocalizationTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPLocalizationTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPLocalizationTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPMarkdownParser/Jakefile b/Resources/CPMarkdownParser/Jakefile deleted file mode 100644 index bd57b7a0d..000000000 --- a/Resources/CPMarkdownParser/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPLevelIndicator - * - * Created by Alexander Ljungberg on May 28, 2011. - * Copyright 2011, WireLoad All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPLevelIndicator", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPLevelIndicator.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPLevelIndicator"); - task.setIdentifier("com.yourcompany.CPLevelIndicator"); - task.setVersion("1.0"); - task.setAuthor("WireLoad"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPLevelIndicator"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPLevelIndicator"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPLevelIndicator", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPLevelIndicator", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPLevelIndicator")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Deployment", "CPLevelIndicator")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPLevelIndicator")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPLevelIndicator")); - print("----------------------------"); -} diff --git a/Resources/CPMarkdownParser/AppController.j b/Resources/CPMarkdownParserTest/AppController.j similarity index 100% rename from Resources/CPMarkdownParser/AppController.j rename to Resources/CPMarkdownParserTest/AppController.j diff --git a/Resources/CPRuleEditorTestI8N/Info.plist b/Resources/CPMarkdownParserTest/Info.plist similarity index 100% rename from Resources/CPRuleEditorTestI8N/Info.plist rename to Resources/CPMarkdownParserTest/Info.plist diff --git a/Resources/CPMarkdownParserTest/Jakefile b/Resources/CPMarkdownParserTest/Jakefile new file mode 100644 index 000000000..43c85ab1a --- /dev/null +++ b/Resources/CPMarkdownParserTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPMarkdownParserTest + * + * Created by Alexander Ljungberg on May 28, 2011. + * Copyright 2011, WireLoad All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPMarkdownParserTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPMarkdownParserTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPMarkdownParserTest"); + task.setIdentifier("com.yourcompany.CPMarkdownParserTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPMarkdownParserTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPMarkdownParserTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPMarkdownParserTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPMarkdownParserTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPMarkdownParserTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPMarkdownParserTest"), path.join("Build", "Deployment", "CPMarkdownParserTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPMarkdownParserTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPMarkdownParserTest"), path.join("Build", "Desktop", "CPMarkdownParserTest", "CPMarkdownParserTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPMarkdownParserTest", "CPMarkdownParserTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPMarkdownParserTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPMenuKeyEquivalents/Resources/spinner.gif b/Resources/CPMarkdownParserTest/Resources/spinner.gif similarity index 100% rename from Resources/CPMenuKeyEquivalents/Resources/spinner.gif rename to Resources/CPMarkdownParserTest/Resources/spinner.gif diff --git a/Resources/CPTextView/index-debug.html b/Resources/CPMarkdownParserTest/index-debug.html similarity index 100% rename from Resources/CPTextView/index-debug.html rename to Resources/CPMarkdownParserTest/index-debug.html diff --git a/Resources/CPTextView/index.html b/Resources/CPMarkdownParserTest/index.html similarity index 100% rename from Resources/CPTextView/index.html rename to Resources/CPMarkdownParserTest/index.html diff --git a/Resources/CPMarkdownParser/main.j b/Resources/CPMarkdownParserTest/main.j similarity index 100% rename from Resources/CPMarkdownParser/main.j rename to Resources/CPMarkdownParserTest/main.j diff --git a/Resources/CPMenuCALayerTest/Jakefile b/Resources/CPMenuCALayerTest/Jakefile index 0c730a17a..ddb48bd1f 100644 --- a/Resources/CPMenuCALayerTest/Jakefile +++ b/Resources/CPMenuCALayerTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2014, Vidinoti SA, All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPMenuCALayerTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPMenuCALayerTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPMenuCALayerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPMenuCALayerTest"); task.setIdentifier("com.yourcompany.CPMenuCALayerTest"); @@ -26,7 +26,7 @@ app ("CPMenuCALayerTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPMenuCALayerTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPMenuCALayerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPMenuCALayerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPMenuCALayerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPMenuCALayerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPMenuCALayerTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPMenuCALayerTest"), FILE.join("Build", "Deployment", "CPMenuCALayerTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPMenuCALayerTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPMenuCALayerTest"), path.join("Build", "Deployment", "CPMenuCALayerTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPMenuCALayerTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPMenuCALayerTest"), FILE.join("Build", "Desktop", "CPMenuCALayerTest", "CPMenuCALayerTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPMenuCALayerTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPMenuCALayerTest"), path.join("Build", "Desktop", "CPMenuCALayerTest", "CPMenuCALayerTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPMenuCALayerTest", "CPMenuCALayerTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPMenuCALayerTest", "CPMenuCALayerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPMenuCALayerTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPMenuCALayerTest")); + console.log("----------------------------"); } diff --git a/Resources/CPMenuEnabledBindingsTest/Jakefile b/Resources/CPMenuEnabledBindingsTest/Jakefile index 0c132c972..ec76e1dfb 100644 --- a/Resources/CPMenuEnabledBindingsTest/Jakefile +++ b/Resources/CPMenuEnabledBindingsTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, WireLoad, LLC All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPMenuTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPMenuTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPMenuTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPMenuTest"); task.setIdentifier("com.yourcompany.CPMenuTest"); @@ -26,7 +26,7 @@ app ("CPMenuTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPMenuTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPMenuTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPMenuTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPMenuTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPMenuTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPMenuTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPMenuTest"), FILE.join("Build", "Deployment", "CPMenuTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPMenuTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPMenuTest"), path.join("Build", "Deployment", "CPMenuTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPMenuTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPMenuTest"), FILE.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPMenuTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPMenuTest"), path.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPMenuTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPMenuTest")); + console.log("----------------------------"); } diff --git a/Resources/CPMenuKeyEquivalents/Jakefile b/Resources/CPMenuKeyEquivalents/Jakefile deleted file mode 100644 index ca6e09e5e..000000000 --- a/Resources/CPMenuKeyEquivalents/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * menu-keyequivs - * - * Created by You on May 5, 2011. - * Copyright 2011, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("menuKeyequivs", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "menuKeyequivs.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("menu-keyequivs"); - task.setIdentifier("com.yourcompany.menuKeyequivs"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("menu-keyequivs"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["menuKeyequivs"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "menuKeyequivs", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "menuKeyequivs", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "menuKeyequivs")); - OS.system(["press", "-f", FILE.join("Build", "Release", "menuKeyequivs"), FILE.join("Build", "Deployment", "menuKeyequivs")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "menuKeyequivs")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "menuKeyequivs"), FILE.join("Build", "Desktop", "menuKeyequivs", "menuKeyequivs.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "menuKeyequivs", "menuKeyequivs.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "menuKeyequivs")); - print("----------------------------"); -} diff --git a/Resources/CPMenuKeyEquivalents/AppController.j b/Resources/CPMenuKeyEquivalentsTest/AppController.j similarity index 100% rename from Resources/CPMenuKeyEquivalents/AppController.j rename to Resources/CPMenuKeyEquivalentsTest/AppController.j diff --git a/Resources/CPMenuKeyEquivalents/Info.plist b/Resources/CPMenuKeyEquivalentsTest/Info.plist similarity index 100% rename from Resources/CPMenuKeyEquivalents/Info.plist rename to Resources/CPMenuKeyEquivalentsTest/Info.plist diff --git a/Resources/CPMenuKeyEquivalentsTest/Jakefile b/Resources/CPMenuKeyEquivalentsTest/Jakefile new file mode 100644 index 000000000..374a4c36c --- /dev/null +++ b/Resources/CPMenuKeyEquivalentsTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * menu-keyequivs + * + * Created by You on May 5, 2011. + * Copyright 2011, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPMenuKeyEquivalentsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPMenuKeyEquivalentsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("menu-keyequivs"); + task.setIdentifier("com.yourcompany.CPMenuKeyEquivalentsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("menu-keyequivs"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPMenuKeyEquivalentsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPMenuKeyEquivalentsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPMenuKeyEquivalentsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPMenuKeyEquivalentsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPMenuKeyEquivalentsTest"), path.join("Build", "Deployment", "CPMenuKeyEquivalentsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPMenuKeyEquivalentsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPMenuKeyEquivalentsTest"), path.join("Build", "Desktop", "CPMenuKeyEquivalentsTest", "CPMenuKeyEquivalentsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPMenuKeyEquivalentsTest", "CPMenuKeyEquivalentsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPMenuKeyEquivalentsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPPopUpButtonBindings/Resources/spinner.gif b/Resources/CPMenuKeyEquivalentsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPPopUpButtonBindings/Resources/spinner.gif rename to Resources/CPMenuKeyEquivalentsTest/Resources/spinner.gif diff --git a/Resources/CPMenuKeyEquivalents/index-debug.html b/Resources/CPMenuKeyEquivalentsTest/index-debug.html similarity index 100% rename from Resources/CPMenuKeyEquivalents/index-debug.html rename to Resources/CPMenuKeyEquivalentsTest/index-debug.html diff --git a/Resources/CPMenuKeyEquivalents/index.html b/Resources/CPMenuKeyEquivalentsTest/index.html similarity index 100% rename from Resources/CPMenuKeyEquivalents/index.html rename to Resources/CPMenuKeyEquivalentsTest/index.html diff --git a/Resources/CPMenuKeyEquivalents/main.j b/Resources/CPMenuKeyEquivalentsTest/main.j similarity index 100% rename from Resources/CPMenuKeyEquivalents/main.j rename to Resources/CPMenuKeyEquivalentsTest/main.j diff --git a/Resources/CPMenuRemoveAllTest/Jakefile b/Resources/CPMenuRemoveAllTest/Jakefile index 3fcf47fb2..f64dde437 100644 --- a/Resources/CPMenuRemoveAllTest/Jakefile +++ b/Resources/CPMenuRemoveAllTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPMenuRemoveAllTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPMenuRemoveAllTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPMenuRemoveAllTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPMenuRemoveAllTest"); task.setIdentifier("com.aparajita.CPMenuRemoveAllTest"); @@ -26,7 +26,7 @@ app ("CPMenuRemoveAllTest", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPMenuRemoveAllTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPMenuRemoveAllTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPMenuRemoveAllTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPMenuRemoveAllTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPMenuRemoveAllTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPMenuRemoveAllTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPMenuRemoveAllTest"), FILE.join("Build", "Deployment", "CPMenuRemoveAllTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPMenuRemoveAllTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPMenuRemoveAllTest"), path.join("Build", "Deployment", "CPMenuRemoveAllTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPMenuRemoveAllTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPMenuRemoveAllTest"), FILE.join("Build", "Desktop", "CPMenuRemoveAllTest", "CPMenuRemoveAllTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPMenuRemoveAllTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPMenuRemoveAllTest"), path.join("Build", "Desktop", "CPMenuRemoveAllTest", "CPMenuRemoveAllTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPMenuRemoveAllTest", "CPMenuRemoveAllTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPMenuRemoveAllTest", "CPMenuRemoveAllTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPMenuRemoveAllTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPMenuRemoveAllTest")); + console.log("----------------------------"); } diff --git a/Resources/CPMenuSubmenuPlacementConstraints/Jakefile b/Resources/CPMenuSubmenuPlacementConstraints/Jakefile index 0c132c972..ec76e1dfb 100644 --- a/Resources/CPMenuSubmenuPlacementConstraints/Jakefile +++ b/Resources/CPMenuSubmenuPlacementConstraints/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, WireLoad, LLC All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPMenuTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPMenuTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPMenuTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPMenuTest"); task.setIdentifier("com.yourcompany.CPMenuTest"); @@ -26,7 +26,7 @@ app ("CPMenuTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPMenuTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPMenuTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPMenuTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPMenuTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPMenuTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPMenuTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPMenuTest"), FILE.join("Build", "Deployment", "CPMenuTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPMenuTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPMenuTest"), path.join("Build", "Deployment", "CPMenuTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPMenuTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPMenuTest"), FILE.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPMenuTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPMenuTest"), path.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPMenuTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPMenuTest")); + console.log("----------------------------"); } diff --git a/Resources/CPMenuTest/Jakefile b/Resources/CPMenuTest/Jakefile index 0c132c972..ec76e1dfb 100644 --- a/Resources/CPMenuTest/Jakefile +++ b/Resources/CPMenuTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, WireLoad, LLC All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPMenuTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPMenuTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPMenuTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPMenuTest"); task.setIdentifier("com.yourcompany.CPMenuTest"); @@ -26,7 +26,7 @@ app ("CPMenuTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPMenuTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPMenuTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPMenuTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPMenuTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPMenuTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPMenuTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPMenuTest"), FILE.join("Build", "Deployment", "CPMenuTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPMenuTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPMenuTest"), path.join("Build", "Deployment", "CPMenuTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPMenuTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPMenuTest"), FILE.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPMenuTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPMenuTest"), path.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPMenuTest", "CPMenuTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPMenuTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPMenuTest")); + console.log("----------------------------"); } diff --git a/Resources/CPOutlineViewCibTest/Jakefile b/Resources/CPOutlineViewCibTest/Jakefile index 262b7c3dd..a46310b44 100644 --- a/Resources/CPOutlineViewCibTest/Jakefile +++ b/Resources/CPOutlineViewCibTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPOutlineViewCibTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPOutlineViewCibTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPOutlineViewCibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPOutlineViewCibTest"); task.setIdentifier("com.yourcompany.CPOutlineViewCibTest"); @@ -26,7 +26,7 @@ app ("CPOutlineViewCibTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPOutlineViewCibTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPOutlineViewCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPOutlineViewCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPOutlineViewCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPOutlineViewCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPOutlineViewCibTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPOutlineViewCibTest"), FILE.join("Build", "Deployment", "CPOutlineViewCibTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPOutlineViewCibTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPOutlineViewCibTest"), path.join("Build", "Deployment", "CPOutlineViewCibTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPOutlineViewCibTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPOutlineViewCibTest"), FILE.join("Build", "Desktop", "CPOutlineViewCibTest", "CPOutlineViewCibTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPOutlineViewCibTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPOutlineViewCibTest"), path.join("Build", "Desktop", "CPOutlineViewCibTest", "CPOutlineViewCibTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPOutlineViewCibTest", "CPOutlineViewCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPOutlineViewCibTest", "CPOutlineViewCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPOutlineViewCibTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPOutlineViewCibTest")); + console.log("----------------------------"); } diff --git a/Resources/CPOutlineViewTest/Jakefile b/Resources/CPOutlineViewTest/Jakefile index 3a5432575..860e6556e 100644 --- a/Resources/CPOutlineViewTest/Jakefile +++ b/Resources/CPOutlineViewTest/Jakefile @@ -6,17 +6,17 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), task = require("jake").task, FileList = require("jake").FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("outlineview", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "outlineview.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "outlineview.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("outlineview"); task.setIdentifier("com.yourcompany.outlineview"); diff --git a/Resources/CPOutlineViewViewBasedCibTest/Jakefile b/Resources/CPOutlineViewViewBasedCibTest/Jakefile index 07ad54e8b..f1a31e4f4 100644 --- a/Resources/CPOutlineViewViewBasedCibTest/Jakefile +++ b/Resources/CPOutlineViewViewBasedCibTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPOutlineViewViewBasedCibTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPOutlineViewViewBasedCibTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPOutlineViewViewBasedCibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPOutlineViewViewBasedCibTest"); task.setIdentifier("com.yourcompany.CPOutlineViewViewBasedCibTest"); @@ -26,7 +26,7 @@ app ("CPOutlineViewViewBasedCibTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPOutlineViewViewBasedCibTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPOutlineViewViewBasedCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPOutlineViewViewBasedCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPOutlineViewViewBasedCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPOutlineViewViewBasedCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPOutlineViewViewBasedCibTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPOutlineViewViewBasedCibTest"), FILE.join("Build", "Deployment", "CPOutlineViewViewBasedCibTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPOutlineViewViewBasedCibTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPOutlineViewViewBasedCibTest"), path.join("Build", "Deployment", "CPOutlineViewViewBasedCibTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPOutlineViewViewBasedCibTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPOutlineViewViewBasedCibTest"), FILE.join("Build", "Desktop", "CPOutlineViewViewBasedCibTest", "CPOutlineViewViewBasedCibTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPOutlineViewViewBasedCibTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPOutlineViewViewBasedCibTest"), path.join("Build", "Desktop", "CPOutlineViewViewBasedCibTest", "CPOutlineViewViewBasedCibTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPOutlineViewViewBasedCibTest", "CPOutlineViewViewBasedCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPOutlineViewViewBasedCibTest", "CPOutlineViewViewBasedCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPOutlineViewViewBasedCibTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPOutlineViewViewBasedCibTest")); + console.log("----------------------------"); } diff --git a/Resources/CPPanelTest/Jakefile b/Resources/CPPanelTest/Jakefile index 4ce399d39..0daf85b69 100644 --- a/Resources/CPPanelTest/Jakefile +++ b/Resources/CPPanelTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2014, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPPanelTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPPanelTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPPanelTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPPanelTest"); task.setIdentifier("com.yourcompany.CPPanelTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPPanelTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPPanelTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPPanelTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPPanelTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPPanelTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPPlatformWindow/Jakefile b/Resources/CPPlatformWindow/Jakefile index 57c0bad39..8f3494863 100644 --- a/Resources/CPPlatformWindow/Jakefile +++ b/Resources/CPPlatformWindow/Jakefile @@ -6,12 +6,12 @@ * Copyright 2014, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPPlatformWindow"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPPlatformWindow.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPPlatformWindow.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPPlatformWindow"); task.setIdentifier("com.yourcompany.CPPlatformWindow"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPPlatformWindow"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPPlatformWindow.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPPlatformWindow.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPPlatformWindow.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPPlatformWindow.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPPlattformWindowMinSize/Jakefile b/Resources/CPPlattformWindowMinSize/Jakefile index cc5c666cb..1752378a2 100644 --- a/Resources/CPPlattformWindowMinSize/Jakefile +++ b/Resources/CPPlattformWindowMinSize/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPPopUpButtonTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPPopUpButtonTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPPopUpButtonTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPPopUpButtonTest"); task.setIdentifier("com.yourcompany.CPPopUpButtonTest"); @@ -26,7 +26,7 @@ app ("CPPopUpButtonTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPPopUpButtonTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPPopUpButtonTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPPopUpButtonTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPPopUpButtonTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPPopUpButtonTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPPopUpButtonTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPPopUpButtonTest"), FILE.join("Build", "Deployment", "CPPopUpButtonTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPPopUpButtonTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPPopUpButtonTest"), path.join("Build", "Deployment", "CPPopUpButtonTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPPopUpButtonTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPPopUpButtonTest"), FILE.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPPopUpButtonTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPPopUpButtonTest"), path.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPPopUpButtonTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPPopUpButtonTest")); + console.log("----------------------------"); } diff --git a/Resources/CPPopUpButtonBindings/Jakefile b/Resources/CPPopUpButtonBindings/Jakefile deleted file mode 100644 index 94c73db0d..000000000 --- a/Resources/CPPopUpButtonBindings/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPPopUpButtonBindings - * - * Created by You on November 2, 2010. - * Copyright 2010, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPPopUpButtonBindings", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPPopUpButtonBindings.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPPopUpButtonBindings"); - task.setIdentifier("com.yourcompany.CPPopUpButtonBindings"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPPopUpButtonBindings"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPPopUpButtonBindings"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPPopUpButtonBindings", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPPopUpButtonBindings", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPPopUpButtonBindings")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPPopUpButtonBindings"), FILE.join("Build", "Deployment", "CPPopUpButtonBindings")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPPopUpButtonBindings")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPPopUpButtonBindings"), FILE.join("Build", "Desktop", "CPPopUpButtonBindings", "CPPopUpButtonBindings.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPPopUpButtonBindings", "CPPopUpButtonBindings.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPPopUpButtonBindings")); - print("----------------------------"); -} diff --git a/Resources/CPPopUpButtonBindings/AppController.j b/Resources/CPPopUpButtonBindingsTest/AppController.j similarity index 100% rename from Resources/CPPopUpButtonBindings/AppController.j rename to Resources/CPPopUpButtonBindingsTest/AppController.j diff --git a/Resources/CPPopUpButtonBindings/CPPopUpButton.j b/Resources/CPPopUpButtonBindingsTest/CPPopUpButton.j similarity index 100% rename from Resources/CPPopUpButtonBindings/CPPopUpButton.j rename to Resources/CPPopUpButtonBindingsTest/CPPopUpButton.j diff --git a/Resources/CPPopUpButtonBindings/Info.plist b/Resources/CPPopUpButtonBindingsTest/Info.plist similarity index 100% rename from Resources/CPPopUpButtonBindings/Info.plist rename to Resources/CPPopUpButtonBindingsTest/Info.plist diff --git a/Resources/CPPopUpButtonBindingsTest/Jakefile b/Resources/CPPopUpButtonBindingsTest/Jakefile new file mode 100644 index 000000000..3f4ee4c7c --- /dev/null +++ b/Resources/CPPopUpButtonBindingsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPPopUpButtonBindingsTest + * + * Created by You on November 2, 2010. + * Copyright 2010, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPPopUpButtonBindingsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPPopUpButtonBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPPopUpButtonBindingsTest"); + task.setIdentifier("com.yourcompany.CPPopUpButtonBindingsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPPopUpButtonBindingsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPPopUpButtonBindingsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPPopUpButtonBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPPopUpButtonBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPPopUpButtonBindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPPopUpButtonBindingsTest"), path.join("Build", "Deployment", "CPPopUpButtonBindingsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPPopUpButtonBindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPPopUpButtonBindingsTest"), path.join("Build", "Desktop", "CPPopUpButtonBindingsTest", "CPPopUpButtonBindingsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPPopUpButtonBindingsTest", "CPPopUpButtonBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPPopUpButtonBindingsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPPopUpButtonBindings/Resources/MainMenu.cib b/Resources/CPPopUpButtonBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPPopUpButtonBindings/Resources/MainMenu.cib rename to Resources/CPPopUpButtonBindingsTest/Resources/MainMenu.cib diff --git a/Resources/CPPopUpButtonBindings/Resources/MainMenu.xib b/Resources/CPPopUpButtonBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPPopUpButtonBindings/Resources/MainMenu.xib rename to Resources/CPPopUpButtonBindingsTest/Resources/MainMenu.xib diff --git a/Resources/CPPopover/Resources/spinner.gif b/Resources/CPPopUpButtonBindingsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPPopover/Resources/spinner.gif rename to Resources/CPPopUpButtonBindingsTest/Resources/spinner.gif diff --git a/Resources/CPPopUpButtonBindings/index-debug.html b/Resources/CPPopUpButtonBindingsTest/index-debug.html similarity index 100% rename from Resources/CPPopUpButtonBindings/index-debug.html rename to Resources/CPPopUpButtonBindingsTest/index-debug.html diff --git a/Resources/CPPopUpButtonBindings/index.html b/Resources/CPPopUpButtonBindingsTest/index.html similarity index 100% rename from Resources/CPPopUpButtonBindings/index.html rename to Resources/CPPopUpButtonBindingsTest/index.html diff --git a/Resources/CPPopUpButtonBindings/main.j b/Resources/CPPopUpButtonBindingsTest/main.j similarity index 100% rename from Resources/CPPopUpButtonBindings/main.j rename to Resources/CPPopUpButtonBindingsTest/main.j diff --git a/Resources/CPPopUpButtonTest/Jakefile b/Resources/CPPopUpButtonTest/Jakefile index cc5c666cb..1752378a2 100644 --- a/Resources/CPPopUpButtonTest/Jakefile +++ b/Resources/CPPopUpButtonTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPPopUpButtonTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPPopUpButtonTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPPopUpButtonTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPPopUpButtonTest"); task.setIdentifier("com.yourcompany.CPPopUpButtonTest"); @@ -26,7 +26,7 @@ app ("CPPopUpButtonTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPPopUpButtonTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPPopUpButtonTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPPopUpButtonTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPPopUpButtonTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPPopUpButtonTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPPopUpButtonTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPPopUpButtonTest"), FILE.join("Build", "Deployment", "CPPopUpButtonTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPPopUpButtonTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPPopUpButtonTest"), path.join("Build", "Deployment", "CPPopUpButtonTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPPopUpButtonTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPPopUpButtonTest"), FILE.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPPopUpButtonTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPPopUpButtonTest"), path.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPPopUpButtonTest", "CPPopUpButtonTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPPopUpButtonTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPPopUpButtonTest")); + console.log("----------------------------"); } diff --git a/Resources/CPPopover/Jakefile b/Resources/CPPopover/Jakefile deleted file mode 100644 index c6c685238..000000000 --- a/Resources/CPPopover/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPPopover - * - * Created by You on March 29, 2012. - * Copyright 2012, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPPopover", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPPopover.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPPopover"); - task.setIdentifier("com.yourcompany.CPPopover"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPPopover"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPPopover"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPPopover", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPPopover", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPPopover")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPPopover"), FILE.join("Build", "Deployment", "CPPopover")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPPopover")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPPopover"), FILE.join("Build", "Desktop", "CPPopover", "CPPopover.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPPopover", "CPPopover.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPPopover")); - print("----------------------------"); -} diff --git a/Resources/CPPopover/AppController.j b/Resources/CPPopoverTest/AppController.j similarity index 100% rename from Resources/CPPopover/AppController.j rename to Resources/CPPopoverTest/AppController.j diff --git a/Resources/CPPopover/Info.plist b/Resources/CPPopoverTest/Info.plist similarity index 100% rename from Resources/CPPopover/Info.plist rename to Resources/CPPopoverTest/Info.plist diff --git a/Resources/CPPopoverTest/Jakefile b/Resources/CPPopoverTest/Jakefile new file mode 100644 index 000000000..f7b6758d1 --- /dev/null +++ b/Resources/CPPopoverTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPPopoverTest + * + * Created by You on March 29, 2012. + * Copyright 2012, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPPopoverTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPPopoverTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPPopoverTest"); + task.setIdentifier("com.yourcompany.CPPopoverTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPPopoverTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPPopoverTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPPopoverTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPPopoverTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPPopoverTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPPopoverTest"), path.join("Build", "Deployment", "CPPopoverTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPPopoverTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPPopoverTest"), path.join("Build", "Desktop", "CPPopoverTest", "CPPopoverTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPPopoverTest", "CPPopoverTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPPopoverTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPPopover/Resources/MainMenu.cib b/Resources/CPPopoverTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPPopover/Resources/MainMenu.cib rename to Resources/CPPopoverTest/Resources/MainMenu.cib diff --git a/Resources/CPPopover/Resources/MainMenu.xib b/Resources/CPPopoverTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPPopover/Resources/MainMenu.xib rename to Resources/CPPopoverTest/Resources/MainMenu.xib diff --git a/Resources/CPProgressIndicator/Resources/spinner.gif b/Resources/CPPopoverTest/Resources/spinner.gif similarity index 100% rename from Resources/CPProgressIndicator/Resources/spinner.gif rename to Resources/CPPopoverTest/Resources/spinner.gif diff --git a/Resources/CPPopover/index-debug.html b/Resources/CPPopoverTest/index-debug.html similarity index 100% rename from Resources/CPPopover/index-debug.html rename to Resources/CPPopoverTest/index-debug.html diff --git a/Resources/CPPopover/index.html b/Resources/CPPopoverTest/index.html similarity index 100% rename from Resources/CPPopover/index.html rename to Resources/CPPopoverTest/index.html diff --git a/Resources/CPPopover/main.j b/Resources/CPPopoverTest/main.j similarity index 100% rename from Resources/CPPopover/main.j rename to Resources/CPPopoverTest/main.j diff --git a/Resources/CPPredicateEditorCibTest/Jakefile b/Resources/CPPredicateEditorCibTest/Jakefile index 773e9ac9e..feb0d2275 100644 --- a/Resources/CPPredicateEditorCibTest/Jakefile +++ b/Resources/CPPredicateEditorCibTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPPredicateEditorTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPPredicateEditorTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPPredicateEditorTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPPredicateEditorTest"); task.setIdentifier("com.yourcompany.CPPredicateEditorTest"); @@ -26,7 +26,7 @@ app ("CPPredicateEditorTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPPredicateEditorTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPPredicateEditorTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPPredicateEditorTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPPredicateEditorTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPPredicateEditorTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPPredicateEditorTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPPredicateEditorTest"), FILE.join("Build", "Deployment", "CPPredicateEditorTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPPredicateEditorTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPPredicateEditorTest"), path.join("Build", "Deployment", "CPPredicateEditorTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPPredicateEditorTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPPredicateEditorTest"), FILE.join("Build", "Desktop", "CPPredicateEditorTest", "CPPredicateEditorTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPPredicateEditorTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPPredicateEditorTest"), path.join("Build", "Desktop", "CPPredicateEditorTest", "CPPredicateEditorTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPPredicateEditorTest", "CPPredicateEditorTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPPredicateEditorTest", "CPPredicateEditorTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPPredicateEditorTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPPredicateEditorTest")); + console.log("----------------------------"); } diff --git a/Resources/CPProgressIndicator/Jakefile b/Resources/CPProgressIndicator/Jakefile deleted file mode 100644 index 262d65197..000000000 --- a/Resources/CPProgressIndicator/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPProgressIndicator - * - * Created by Alexander Ljungberg on May 3, 2012. - * Copyright 2012, SlevenBits Ltd. All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPProgressIndicator", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPProgressIndicator.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPProgressIndicator"); - task.setIdentifier("com.yourcompany.CPProgressIndicator"); - task.setVersion("1.0"); - task.setAuthor("SlevenBits Ltd"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPProgressIndicator"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPProgressIndicator"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPProgressIndicator", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPProgressIndicator", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPProgressIndicator")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPProgressIndicator"), FILE.join("Build", "Deployment", "CPProgressIndicator")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPProgressIndicator")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPProgressIndicator"), FILE.join("Build", "Desktop", "CPProgressIndicator", "CPProgressIndicator.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPProgressIndicator", "CPProgressIndicator.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPProgressIndicator")); - print("----------------------------"); -} diff --git a/Resources/CPProgressIndicator/AppController.j b/Resources/CPProgressIndicatorTest/AppController.j similarity index 100% rename from Resources/CPProgressIndicator/AppController.j rename to Resources/CPProgressIndicatorTest/AppController.j diff --git a/Resources/CPProgressIndicator/Info.plist b/Resources/CPProgressIndicatorTest/Info.plist similarity index 100% rename from Resources/CPProgressIndicator/Info.plist rename to Resources/CPProgressIndicatorTest/Info.plist diff --git a/Resources/CPProgressIndicatorTest/Jakefile b/Resources/CPProgressIndicatorTest/Jakefile new file mode 100644 index 000000000..15942fcea --- /dev/null +++ b/Resources/CPProgressIndicatorTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPProgressIndicatorTest + * + * Created by Alexander Ljungberg on May 3, 2012. + * Copyright 2012, SlevenBits Ltd. All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPProgressIndicatorTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPProgressIndicatorTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPProgressIndicatorTest"); + task.setIdentifier("com.yourcompany.CPProgressIndicatorTest"); + task.setVersion("1.0"); + task.setAuthor("SlevenBits Ltd"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPProgressIndicatorTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPProgressIndicatorTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPProgressIndicatorTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPProgressIndicatorTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPProgressIndicatorTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPProgressIndicatorTest"), path.join("Build", "Deployment", "CPProgressIndicatorTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPProgressIndicatorTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPProgressIndicatorTest"), path.join("Build", "Desktop", "CPProgressIndicatorTest", "CPProgressIndicatorTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPProgressIndicatorTest", "CPProgressIndicatorTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPProgressIndicatorTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPProgressIndicator/Resources/MainMenu.cib b/Resources/CPProgressIndicatorTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPProgressIndicator/Resources/MainMenu.cib rename to Resources/CPProgressIndicatorTest/Resources/MainMenu.cib diff --git a/Resources/CPProgressIndicator/Resources/MainMenu.xib b/Resources/CPProgressIndicatorTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPProgressIndicator/Resources/MainMenu.xib rename to Resources/CPProgressIndicatorTest/Resources/MainMenu.xib diff --git a/Resources/CPRadioBindings/Resources/spinner.gif b/Resources/CPProgressIndicatorTest/Resources/spinner.gif similarity index 100% rename from Resources/CPRadioBindings/Resources/spinner.gif rename to Resources/CPProgressIndicatorTest/Resources/spinner.gif diff --git a/Resources/CPProgressIndicator/index-debug.html b/Resources/CPProgressIndicatorTest/index-debug.html similarity index 100% rename from Resources/CPProgressIndicator/index-debug.html rename to Resources/CPProgressIndicatorTest/index-debug.html diff --git a/Resources/CPProgressIndicator/index.html b/Resources/CPProgressIndicatorTest/index.html similarity index 100% rename from Resources/CPProgressIndicator/index.html rename to Resources/CPProgressIndicatorTest/index.html diff --git a/Resources/CPProgressIndicator/main.j b/Resources/CPProgressIndicatorTest/main.j similarity index 100% rename from Resources/CPProgressIndicator/main.j rename to Resources/CPProgressIndicatorTest/main.j diff --git a/Resources/CPPropertyListSerializationTest/Jakefile b/Resources/CPPropertyListSerializationTest/Jakefile index 0ec2c726b..55b60ee65 100644 --- a/Resources/CPPropertyListSerializationTest/Jakefile +++ b/Resources/CPPropertyListSerializationTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPPropertyListSerializationTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPPropertyListSerializationTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPPropertyListSerializationTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPPropertyListSerializationTest"); task.setIdentifier("com.yourcompany.CPPropertyListSerializationTest"); @@ -26,7 +26,7 @@ app ("CPPropertyListSerializationTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPPropertyListSerializationTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPPropertyListSerializationTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPPropertyListSerializationTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPPropertyListSerializationTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPPropertyListSerializationTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPPropertyListSerializationTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPPropertyListSerializationTest"), FILE.join("Build", "Deployment", "CPPropertyListSerializationTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPPropertyListSerializationTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPPropertyListSerializationTest"), path.join("Build", "Deployment", "CPPropertyListSerializationTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPPropertyListSerializationTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPPropertyListSerializationTest"), FILE.join("Build", "Desktop", "CPPropertyListSerializationTest", "CPPropertyListSerializationTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPPropertyListSerializationTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPPropertyListSerializationTest"), path.join("Build", "Desktop", "CPPropertyListSerializationTest", "CPPropertyListSerializationTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPPropertyListSerializationTest", "CPPropertyListSerializationTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPPropertyListSerializationTest", "CPPropertyListSerializationTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPPropertyListSerializationTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPPropertyListSerializationTest")); + console.log("----------------------------"); } diff --git a/Resources/CPRadioBindings/Jakefile b/Resources/CPRadioBindings/Jakefile deleted file mode 100644 index 9364e4deb..000000000 --- a/Resources/CPRadioBindings/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPRadioBindings - * - * Created by You on February 22, 2013. - * Copyright 2013, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPRadioBindings", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPRadioBindings.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPRadioBindings"); - task.setIdentifier("com.yourcompany.CPRadioBindings"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPRadioBindings"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPRadioBindings"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPRadioBindings", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPRadioBindings", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPRadioBindings")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPRadioBindings"), FILE.join("Build", "Deployment", "CPRadioBindings")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPRadioBindings")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPRadioBindings"), FILE.join("Build", "Desktop", "CPRadioBindings", "CPRadioBindings.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPRadioBindings", "CPRadioBindings.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPRadioBindings")); - print("----------------------------"); -} diff --git a/Resources/CPRadioBindings/AppController.j b/Resources/CPRadioBindingsTest/AppController.j similarity index 100% rename from Resources/CPRadioBindings/AppController.j rename to Resources/CPRadioBindingsTest/AppController.j diff --git a/Resources/CPRadioBindings/Info.plist b/Resources/CPRadioBindingsTest/Info.plist similarity index 100% rename from Resources/CPRadioBindings/Info.plist rename to Resources/CPRadioBindingsTest/Info.plist diff --git a/Resources/CPRadioBindingsTest/Jakefile b/Resources/CPRadioBindingsTest/Jakefile new file mode 100644 index 000000000..6bf66196f --- /dev/null +++ b/Resources/CPRadioBindingsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPRadioBindingsTest + * + * Created by You on February 22, 2013. + * Copyright 2013, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPRadioBindingsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPRadioBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPRadioBindingsTest"); + task.setIdentifier("com.yourcompany.CPRadioBindingsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPRadioBindingsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPRadioBindingsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPRadioBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPRadioBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPRadioBindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPRadioBindingsTest"), path.join("Build", "Deployment", "CPRadioBindingsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPRadioBindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPRadioBindingsTest"), path.join("Build", "Desktop", "CPRadioBindingsTest", "CPRadioBindingsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPRadioBindingsTest", "CPRadioBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPRadioBindingsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPRadioBindings/Resources/MainMenu.cib b/Resources/CPRadioBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPRadioBindings/Resources/MainMenu.cib rename to Resources/CPRadioBindingsTest/Resources/MainMenu.cib diff --git a/Resources/CPRadioBindings/Resources/MainMenu.xib b/Resources/CPRadioBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPRadioBindings/Resources/MainMenu.xib rename to Resources/CPRadioBindingsTest/Resources/MainMenu.xib diff --git a/Resources/CPRuleEditorTestI8N/Resources/spinner.gif b/Resources/CPRadioBindingsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPRuleEditorTestI8N/Resources/spinner.gif rename to Resources/CPRadioBindingsTest/Resources/spinner.gif diff --git a/Resources/CPRadioBindings/index-debug.html b/Resources/CPRadioBindingsTest/index-debug.html similarity index 100% rename from Resources/CPRadioBindings/index-debug.html rename to Resources/CPRadioBindingsTest/index-debug.html diff --git a/Resources/CPRadioBindings/index.html b/Resources/CPRadioBindingsTest/index.html similarity index 100% rename from Resources/CPRadioBindings/index.html rename to Resources/CPRadioBindingsTest/index.html diff --git a/Resources/CPRadioBindings/main.j b/Resources/CPRadioBindingsTest/main.j similarity index 100% rename from Resources/CPRadioBindings/main.j rename to Resources/CPRadioBindingsTest/main.j diff --git a/Resources/CPRuleEditorCibTest/Jakefile b/Resources/CPRuleEditorCibTest/Jakefile index c66879a92..1f0c202fc 100644 --- a/Resources/CPRuleEditorCibTest/Jakefile +++ b/Resources/CPRuleEditorCibTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPRuleEditorCibTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPRuleEditorCibTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPRuleEditorCibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPRuleEditorCibTest"); task.setIdentifier("com.yourcompany.CPRuleEditorCibTest"); @@ -26,7 +26,7 @@ app ("CPRuleEditorCibTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPRuleEditorCibTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPRuleEditorCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPRuleEditorCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPRuleEditorCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPRuleEditorCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPRuleEditorCibTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPRuleEditorCibTest"), FILE.join("Build", "Deployment", "CPRuleEditorCibTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPRuleEditorCibTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPRuleEditorCibTest"), path.join("Build", "Deployment", "CPRuleEditorCibTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPRuleEditorCibTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPRuleEditorCibTest"), FILE.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPRuleEditorCibTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPRuleEditorCibTest"), path.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPRuleEditorCibTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPRuleEditorCibTest")); + console.log("----------------------------"); } diff --git a/Resources/CPRuleEditorTestI8N/AppController.j b/Resources/CPRuleEditorTest/AppController.j similarity index 100% rename from Resources/CPRuleEditorTestI8N/AppController.j rename to Resources/CPRuleEditorTest/AppController.j diff --git a/Resources/CPTextView/Info.plist b/Resources/CPRuleEditorTest/Info.plist similarity index 100% rename from Resources/CPTextView/Info.plist rename to Resources/CPRuleEditorTest/Info.plist diff --git a/Resources/CPRuleEditorTestI8N/Jakefile b/Resources/CPRuleEditorTest/Jakefile similarity index 51% rename from Resources/CPRuleEditorTestI8N/Jakefile rename to Resources/CPRuleEditorTest/Jakefile index c66879a92..1f0c202fc 100644 --- a/Resources/CPRuleEditorTestI8N/Jakefile +++ b/Resources/CPRuleEditorTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPRuleEditorCibTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPRuleEditorCibTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPRuleEditorCibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPRuleEditorCibTest"); task.setIdentifier("com.yourcompany.CPRuleEditorCibTest"); @@ -26,7 +26,7 @@ app ("CPRuleEditorCibTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPRuleEditorCibTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPRuleEditorCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPRuleEditorCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPRuleEditorCibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPRuleEditorCibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPRuleEditorCibTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPRuleEditorCibTest"), FILE.join("Build", "Deployment", "CPRuleEditorCibTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPRuleEditorCibTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPRuleEditorCibTest"), path.join("Build", "Deployment", "CPRuleEditorCibTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPRuleEditorCibTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPRuleEditorCibTest"), FILE.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPRuleEditorCibTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPRuleEditorCibTest"), path.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPRuleEditorCibTest", "CPRuleEditorCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPRuleEditorCibTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPRuleEditorCibTest")); + console.log("----------------------------"); } diff --git a/Resources/CPScrollView/Resources/spinner.gif b/Resources/CPRuleEditorTest/Resources/spinner.gif similarity index 100% rename from Resources/CPScrollView/Resources/spinner.gif rename to Resources/CPRuleEditorTest/Resources/spinner.gif diff --git a/Resources/CPRuleEditorTestI8N/RuleDelegate.j b/Resources/CPRuleEditorTest/RuleDelegate.j similarity index 100% rename from Resources/CPRuleEditorTestI8N/RuleDelegate.j rename to Resources/CPRuleEditorTest/RuleDelegate.j diff --git a/Resources/CPRuleEditorTestI8N/index-debug.html b/Resources/CPRuleEditorTest/index-debug.html similarity index 100% rename from Resources/CPRuleEditorTestI8N/index-debug.html rename to Resources/CPRuleEditorTest/index-debug.html diff --git a/Resources/CPRuleEditorTestI8N/index.html b/Resources/CPRuleEditorTest/index.html similarity index 100% rename from Resources/CPRuleEditorTestI8N/index.html rename to Resources/CPRuleEditorTest/index.html diff --git a/Resources/CPRuleEditorTestI8N/main.j b/Resources/CPRuleEditorTest/main.j similarity index 100% rename from Resources/CPRuleEditorTestI8N/main.j rename to Resources/CPRuleEditorTest/main.j diff --git a/Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview_AppController.h b/Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview_AppController.h deleted file mode 100644 index fc861f06e..000000000 --- a/Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview_AppController.h +++ /dev/null @@ -1,13 +0,0 @@ - -@interface AppController : NSObject -{ - IBOutlet NSScrollView* scrollView; - IBOutlet NSView* contentView; -} -- (IBAction)change:(id)aSender; -- (IBAction)changeKnob:(id)aSender; -- (IBAction)changeBackground:(id)aSender; -- (IBAction)makeBigDocView:(id)aSender; -- (IBAction)makeSmallDocView:(id)aSender; -- (IBAction)flash:(id)aSender; -@end \ No newline at end of file diff --git a/Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview__AppController.h b/Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview__AppController.h deleted file mode 100644 index fc861f06e..000000000 --- a/Resources/CPScrollView2/.xCodeSupport/Sources/_Users_Tonio_Desktop_scrollview__AppController.h +++ /dev/null @@ -1,13 +0,0 @@ - -@interface AppController : NSObject -{ - IBOutlet NSScrollView* scrollView; - IBOutlet NSView* contentView; -} -- (IBAction)change:(id)aSender; -- (IBAction)changeKnob:(id)aSender; -- (IBAction)changeBackground:(id)aSender; -- (IBAction)makeBigDocView:(id)aSender; -- (IBAction)makeSmallDocView:(id)aSender; -- (IBAction)flash:(id)aSender; -@end \ No newline at end of file diff --git a/Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.pbxproj b/Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.pbxproj deleted file mode 100644 index 83d2420fc..000000000 --- a/Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.pbxproj +++ /dev/null @@ -1,357 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 9EEC4498135749D200615446 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9EEC4497135749D200615446 /* Cocoa.framework */; }; - 9EEC44B5135749D300615446 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9EEC4497135749D200615446 /* Cocoa.framework */; }; - 9EEC44CC13574A0B00615446 /* scrollview in Resources */ = {isa = PBXBuildFile; fileRef = 9EEC44CB13574A0B00615446 /* scrollview */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 9EEC44B6135749D300615446 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 9EEC448A135749D200615446 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9EEC4492135749D200615446; - remoteInfo = Another; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 9EEC4493135749D200615446 /* Another.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Another.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 9EEC4497135749D200615446 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - 9EEC449A135749D300615446 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 9EEC449B135749D300615446 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; - 9EEC449C135749D300615446 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 9EEC44B4135749D300615446 /* AnotherTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AnotherTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; - 9EEC44CB13574A0B00615446 /* scrollview */ = {isa = PBXFileReference; lastKnownFileType = folder; name = scrollview; path = ..; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 9EEC4490135749D200615446 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EEC4498135749D200615446 /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9EEC44B0135749D300615446 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EEC44B5135749D300615446 /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9EEC4488135749D200615446 = { - isa = PBXGroup; - children = ( - 9EEC44CB13574A0B00615446 /* scrollview */, - 9EEC4496135749D200615446 /* Frameworks */, - 9EEC4494135749D200615446 /* Products */, - ); - sourceTree = ""; - }; - 9EEC4494135749D200615446 /* Products */ = { - isa = PBXGroup; - children = ( - 9EEC4493135749D200615446 /* Another.app */, - 9EEC44B4135749D300615446 /* AnotherTests.octest */, - ); - name = Products; - sourceTree = ""; - }; - 9EEC4496135749D200615446 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 9EEC4497135749D200615446 /* Cocoa.framework */, - 9EEC4499135749D300615446 /* Other Frameworks */, - ); - name = Frameworks; - sourceTree = ""; - }; - 9EEC4499135749D300615446 /* Other Frameworks */ = { - isa = PBXGroup; - children = ( - 9EEC449A135749D300615446 /* AppKit.framework */, - 9EEC449B135749D300615446 /* CoreData.framework */, - 9EEC449C135749D300615446 /* Foundation.framework */, - ); - name = "Other Frameworks"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 9EEC4492135749D200615446 /* Another */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9EEC44C5135749D300615446 /* Build configuration list for PBXNativeTarget "Another" */; - buildPhases = ( - 9EEC448F135749D200615446 /* Sources */, - 9EEC4490135749D200615446 /* Frameworks */, - 9EEC4491135749D200615446 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Another; - productName = Another; - productReference = 9EEC4493135749D200615446 /* Another.app */; - productType = "com.apple.product-type.application"; - }; - 9EEC44B3135749D300615446 /* AnotherTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9EEC44C8135749D300615446 /* Build configuration list for PBXNativeTarget "AnotherTests" */; - buildPhases = ( - 9EEC44AF135749D300615446 /* Sources */, - 9EEC44B0135749D300615446 /* Frameworks */, - 9EEC44B1135749D300615446 /* Resources */, - 9EEC44B2135749D300615446 /* ShellScript */, - ); - buildRules = ( - ); - dependencies = ( - 9EEC44B7135749D300615446 /* PBXTargetDependency */, - ); - name = AnotherTests; - productName = AnotherTests; - productReference = 9EEC44B4135749D300615446 /* AnotherTests.octest */; - productType = "com.apple.product-type.bundle"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 9EEC448A135749D200615446 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0420; - ORGANIZATIONNAME = "280 North, Inc."; - }; - buildConfigurationList = 9EEC448D135749D200615446 /* Build configuration list for PBXProject "scrollview" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 9EEC4488135749D200615446; - productRefGroup = 9EEC4494135749D200615446 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 9EEC4492135749D200615446 /* Another */, - 9EEC44B3135749D300615446 /* AnotherTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 9EEC4491135749D200615446 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EEC44CC13574A0B00615446 /* scrollview in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9EEC44B1135749D300615446 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 9EEC44B2135749D300615446 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 9EEC448F135749D200615446 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9EEC44AF135749D300615446 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 9EEC44B7135749D300615446 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 9EEC4492135749D200615446 /* Another */; - targetProxy = 9EEC44B6135749D300615446 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 9EEC44C3135749D300615446 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = DEBUG; - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.6; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - }; - name = Debug; - }; - 9EEC44C4135749D300615446 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.6; - SDKROOT = macosx; - }; - name = Release; - }; - 9EEC44C6135749D300615446 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "Another/Another-Prefix.pch"; - INFOPLIST_FILE = "Another/Another-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 9EEC44C7135749D300615446 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "Another/Another-Prefix.pch"; - INFOPLIST_FILE = "Another/Another-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 9EEC44C9135749D300615446 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Another.app/Contents/MacOS/Another"; - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks"; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AnotherTests/AnotherTests-Prefix.pch"; - INFOPLIST_FILE = "AnotherTests/AnotherTests-Info.plist"; - OTHER_LDFLAGS = ( - "-framework", - SenTestingKit, - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = octest; - }; - name = Debug; - }; - 9EEC44CA135749D300615446 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Another.app/Contents/MacOS/Another"; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks"; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AnotherTests/AnotherTests-Prefix.pch"; - INFOPLIST_FILE = "AnotherTests/AnotherTests-Info.plist"; - OTHER_LDFLAGS = ( - "-framework", - SenTestingKit, - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = octest; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 9EEC448D135749D200615446 /* Build configuration list for PBXProject "scrollview" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EEC44C3135749D300615446 /* Debug */, - 9EEC44C4135749D300615446 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9EEC44C5135749D300615446 /* Build configuration list for PBXNativeTarget "Another" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EEC44C6135749D300615446 /* Debug */, - 9EEC44C7135749D300615446 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9EEC44C8135749D300615446 /* Build configuration list for PBXNativeTarget "AnotherTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EEC44C9135749D300615446 /* Debug */, - 9EEC44CA135749D300615446 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 9EEC448A135749D200615446 /* Project object */; -} diff --git a/Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 966480d22..000000000 --- a/Resources/CPScrollView2/.xCodeSupport/scrollview.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Resources/CPScrollView2/Jakefile b/Resources/CPScrollView2/Jakefile deleted file mode 100644 index e2630179d..000000000 --- a/Resources/CPScrollView2/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * scrollview - * - * Created by You on October 3, 2011. - * Copyright 2011, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("scrollview", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "scrollview.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("scrollview"); - task.setIdentifier("com.yourcompany.scrollview"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("scrollview"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["scrollview"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "scrollview", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "scrollview", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "scrollview")); - OS.system(["press", "-f", FILE.join("Build", "Release", "scrollview"), FILE.join("Build", "Deployment", "scrollview")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "scrollview")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "scrollview"), FILE.join("Build", "Desktop", "scrollview", "scrollview.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "scrollview", "scrollview.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "scrollview")); - print("----------------------------"); -} diff --git a/Resources/CPScrollView2/AppController.j b/Resources/CPScrollView2Test/AppController.j similarity index 100% rename from Resources/CPScrollView2/AppController.j rename to Resources/CPScrollView2Test/AppController.j diff --git a/Resources/CPScrollView2/Info.plist b/Resources/CPScrollView2Test/Info.plist similarity index 100% rename from Resources/CPScrollView2/Info.plist rename to Resources/CPScrollView2Test/Info.plist diff --git a/Resources/CPScrollView2Test/Jakefile b/Resources/CPScrollView2Test/Jakefile new file mode 100644 index 000000000..f74598b2f --- /dev/null +++ b/Resources/CPScrollView2Test/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPScrollView2Test + * + * Created by You on October 3, 2011. + * Copyright 2011, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPScrollView2Test", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPScrollView2Test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPScrollView2Test"); + task.setIdentifier("com.yourcompany.CPScrollView2Test"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPScrollView2Test"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPScrollView2Test"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPScrollView2Test", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPScrollView2Test", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPScrollView2Test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPScrollView2Test"), path.join("Build", "Deployment", "CPScrollView2Test")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPScrollView2Test"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPScrollView2Test"), path.join("Build", "Desktop", "CPScrollView2Test", "CPScrollView2Test.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPScrollView2Test", "CPScrollView2Test.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPScrollView2Test")); + console.log("----------------------------"); +} diff --git a/Resources/CPScrollView2/Resources/MainMenu.cib b/Resources/CPScrollView2Test/Resources/MainMenu.cib similarity index 100% rename from Resources/CPScrollView2/Resources/MainMenu.cib rename to Resources/CPScrollView2Test/Resources/MainMenu.cib diff --git a/Resources/CPScrollView2/Resources/MainMenu.xib b/Resources/CPScrollView2Test/Resources/MainMenu.xib similarity index 100% rename from Resources/CPScrollView2/Resources/MainMenu.xib rename to Resources/CPScrollView2Test/Resources/MainMenu.xib diff --git a/Resources/CPScrollView/Resources/photo.jpg b/Resources/CPScrollView2Test/Resources/photo.jpg similarity index 100% rename from Resources/CPScrollView/Resources/photo.jpg rename to Resources/CPScrollView2Test/Resources/photo.jpg diff --git a/Resources/CPScrollView2/Resources/spinner.gif b/Resources/CPScrollView2Test/Resources/spinner.gif similarity index 100% rename from Resources/CPScrollView2/Resources/spinner.gif rename to Resources/CPScrollView2Test/Resources/spinner.gif diff --git a/Resources/CPScrollView/index-debug.html b/Resources/CPScrollView2Test/index-debug.html similarity index 100% rename from Resources/CPScrollView/index-debug.html rename to Resources/CPScrollView2Test/index-debug.html diff --git a/Resources/CPScrollView/index.html b/Resources/CPScrollView2Test/index.html similarity index 100% rename from Resources/CPScrollView/index.html rename to Resources/CPScrollView2Test/index.html diff --git a/Resources/CPScrollView2/main.j b/Resources/CPScrollView2Test/main.j similarity index 100% rename from Resources/CPScrollView2/main.j rename to Resources/CPScrollView2Test/main.j diff --git a/Resources/CPScrollView/AppController.j b/Resources/CPScrollViewTest/AppController.j similarity index 100% rename from Resources/CPScrollView/AppController.j rename to Resources/CPScrollViewTest/AppController.j diff --git a/Resources/CPScrollView/Info.plist b/Resources/CPScrollViewTest/Info.plist similarity index 100% rename from Resources/CPScrollView/Info.plist rename to Resources/CPScrollViewTest/Info.plist diff --git a/Resources/CPScrollView2/Resources/photo.jpg b/Resources/CPScrollViewTest/Resources/photo.jpg similarity index 100% rename from Resources/CPScrollView2/Resources/photo.jpg rename to Resources/CPScrollViewTest/Resources/photo.jpg diff --git a/Resources/CPSearchField/Resources/spinner.gif b/Resources/CPScrollViewTest/Resources/spinner.gif similarity index 100% rename from Resources/CPSearchField/Resources/spinner.gif rename to Resources/CPScrollViewTest/Resources/spinner.gif diff --git a/Resources/CPScrollView2/index-debug.html b/Resources/CPScrollViewTest/index-debug.html similarity index 100% rename from Resources/CPScrollView2/index-debug.html rename to Resources/CPScrollViewTest/index-debug.html diff --git a/Resources/CPScrollView2/index.html b/Resources/CPScrollViewTest/index.html similarity index 100% rename from Resources/CPScrollView2/index.html rename to Resources/CPScrollViewTest/index.html diff --git a/Resources/CPScrollView/main.j b/Resources/CPScrollViewTest/main.j similarity index 100% rename from Resources/CPScrollView/main.j rename to Resources/CPScrollViewTest/main.j diff --git a/Resources/CPSearchField/Jakefile b/Resources/CPSearchField/Jakefile deleted file mode 100644 index 5149edb7f..000000000 --- a/Resources/CPSearchField/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPSearchField - * - * Created by You on November 27, 2010. - * Copyright 2010, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPSearchField", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPSearchField.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPSearchField"); - task.setIdentifier("com.yourcompany.CPSearchField"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPSearchField"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPSearchField"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPSearchField", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPSearchField", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPSearchField")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPSearchField"), FILE.join("Build", "Deployment", "CPSearchField")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPSearchField")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPSearchField"), FILE.join("Build", "Desktop", "CPSearchField", "CPSearchField.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPSearchField", "CPSearchField.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPSearchField")); - print("----------------------------"); -} diff --git a/Resources/CPSearchFieldPredicateBinding/Jakefile b/Resources/CPSearchFieldPredicateBinding/Jakefile index 6f3616e21..e8f6810c4 100755 --- a/Resources/CPSearchFieldPredicateBinding/Jakefile +++ b/Resources/CPSearchFieldPredicateBinding/Jakefile @@ -6,12 +6,12 @@ * Copyright 2018, Army of Me, Inc. All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "44SortingCPTableView"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "44SortingCPTableView.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "44SortingCPTableView.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("44-Sorting-CPTableView"); task.setIdentifier("com.yourcompany.44SortingCPTableView"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Army of Me, Inc."); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("44-Sorting-CPTableView"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPSearchField/AppController.j b/Resources/CPSearchFieldTest/AppController.j similarity index 100% rename from Resources/CPSearchField/AppController.j rename to Resources/CPSearchFieldTest/AppController.j diff --git a/Resources/CPSearchField/Info.plist b/Resources/CPSearchFieldTest/Info.plist similarity index 100% rename from Resources/CPSearchField/Info.plist rename to Resources/CPSearchFieldTest/Info.plist diff --git a/Resources/CPSearchFieldTest/Jakefile b/Resources/CPSearchFieldTest/Jakefile new file mode 100644 index 000000000..a4d98e6a6 --- /dev/null +++ b/Resources/CPSearchFieldTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPSearchFieldTest + * + * Created by You on November 27, 2010. + * Copyright 2010, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPSearchFieldTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPSearchFieldTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPSearchFieldTest"); + task.setIdentifier("com.yourcompany.CPSearchFieldTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPSearchFieldTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPSearchFieldTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPSearchFieldTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPSearchFieldTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPSearchFieldTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPSearchFieldTest"), path.join("Build", "Deployment", "CPSearchFieldTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPSearchFieldTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPSearchFieldTest"), path.join("Build", "Desktop", "CPSearchFieldTest", "CPSearchFieldTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPSearchFieldTest", "CPSearchFieldTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPSearchFieldTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPSearchField/Resources/MainMenu.cib b/Resources/CPSearchFieldTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPSearchField/Resources/MainMenu.cib rename to Resources/CPSearchFieldTest/Resources/MainMenu.cib diff --git a/Resources/CPSearchField/Resources/MainMenu.xib b/Resources/CPSearchFieldTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPSearchField/Resources/MainMenu.xib rename to Resources/CPSearchFieldTest/Resources/MainMenu.xib diff --git a/Resources/CPStepperBindings/Resources/spinner.gif b/Resources/CPSearchFieldTest/Resources/spinner.gif similarity index 100% rename from Resources/CPStepperBindings/Resources/spinner.gif rename to Resources/CPSearchFieldTest/Resources/spinner.gif diff --git a/Resources/CPSearchField/index-debug.html b/Resources/CPSearchFieldTest/index-debug.html similarity index 100% rename from Resources/CPSearchField/index-debug.html rename to Resources/CPSearchFieldTest/index-debug.html diff --git a/Resources/CPSearchField/index.html b/Resources/CPSearchFieldTest/index.html similarity index 100% rename from Resources/CPSearchField/index.html rename to Resources/CPSearchFieldTest/index.html diff --git a/Resources/CPSearchField/main.j b/Resources/CPSearchFieldTest/main.j similarity index 100% rename from Resources/CPSearchField/main.j rename to Resources/CPSearchFieldTest/main.j diff --git a/Resources/CPSegmentedControlBindings/Jakefile b/Resources/CPSegmentedControlBindings/Jakefile deleted file mode 100644 index f6b3daf9b..000000000 --- a/Resources/CPSegmentedControlBindings/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPSegmentedControlBindings - * - * Created by You on November 24, 2012. - * Copyright 2012, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPSegmentedControlBindings", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPSegmentedControlBindings.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPSegmentedControlBindings"); - task.setIdentifier("com.yourcompany.CPSegmentedControlBindings"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPSegmentedControlBindings"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPSegmentedControlBindings"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPSegmentedControlBindings", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPSegmentedControlBindings", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPSegmentedControlBindings")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPSegmentedControlBindings"), FILE.join("Build", "Deployment", "CPSegmentedControlBindings")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPSegmentedControlBindings")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPSegmentedControlBindings"), FILE.join("Build", "Desktop", "CPSegmentedControlBindings", "CPSegmentedControlBindings.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPSegmentedControlBindings", "CPSegmentedControlBindings.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPSegmentedControlBindings")); - print("----------------------------"); -} diff --git a/Resources/CPSegmentedControlBindings/AppController.j b/Resources/CPSegmentedControlBindingsTest/AppController.j similarity index 100% rename from Resources/CPSegmentedControlBindings/AppController.j rename to Resources/CPSegmentedControlBindingsTest/AppController.j diff --git a/Resources/CPSegmentedControlBindings/Info.plist b/Resources/CPSegmentedControlBindingsTest/Info.plist similarity index 100% rename from Resources/CPSegmentedControlBindings/Info.plist rename to Resources/CPSegmentedControlBindingsTest/Info.plist diff --git a/Resources/CPSegmentedControlBindingsTest/Jakefile b/Resources/CPSegmentedControlBindingsTest/Jakefile new file mode 100644 index 000000000..6ad4ce8ae --- /dev/null +++ b/Resources/CPSegmentedControlBindingsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPSegmentedControlBindingsTest + * + * Created by You on November 24, 2012. + * Copyright 2012, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPSegmentedControlBindingsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPSegmentedControlBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPSegmentedControlBindingsTest"); + task.setIdentifier("com.yourcompany.CPSegmentedControlBindingsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPSegmentedControlBindingsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPSegmentedControlBindingsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPSegmentedControlBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPSegmentedControlBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPSegmentedControlBindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPSegmentedControlBindingsTest"), path.join("Build", "Deployment", "CPSegmentedControlBindingsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPSegmentedControlBindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPSegmentedControlBindingsTest"), path.join("Build", "Desktop", "CPSegmentedControlBindingsTest", "CPSegmentedControlBindingsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPSegmentedControlBindingsTest", "CPSegmentedControlBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPSegmentedControlBindingsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPSegmentedControlBindings/Resources/MainMenu.cib b/Resources/CPSegmentedControlBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPSegmentedControlBindings/Resources/MainMenu.cib rename to Resources/CPSegmentedControlBindingsTest/Resources/MainMenu.cib diff --git a/Resources/CPSegmentedControlBindings/Resources/MainMenu.xib b/Resources/CPSegmentedControlBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPSegmentedControlBindings/Resources/MainMenu.xib rename to Resources/CPSegmentedControlBindingsTest/Resources/MainMenu.xib diff --git a/Resources/CPSegmentedControlBindings/Resources/spinner.gif b/Resources/CPSegmentedControlBindingsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPSegmentedControlBindings/Resources/spinner.gif rename to Resources/CPSegmentedControlBindingsTest/Resources/spinner.gif diff --git a/Resources/CPSegmentedControlBindings/index-debug.html b/Resources/CPSegmentedControlBindingsTest/index-debug.html similarity index 100% rename from Resources/CPSegmentedControlBindings/index-debug.html rename to Resources/CPSegmentedControlBindingsTest/index-debug.html diff --git a/Resources/CPSegmentedControlBindings/index.html b/Resources/CPSegmentedControlBindingsTest/index.html similarity index 100% rename from Resources/CPSegmentedControlBindings/index.html rename to Resources/CPSegmentedControlBindingsTest/index.html diff --git a/Resources/CPSegmentedControlBindings/main.j b/Resources/CPSegmentedControlBindingsTest/main.j similarity index 100% rename from Resources/CPSegmentedControlBindings/main.j rename to Resources/CPSegmentedControlBindingsTest/main.j diff --git a/Resources/CPSegmentedControlTest/Jakefile b/Resources/CPSegmentedControlTest/Jakefile index a880534d4..5c718fa83 100644 --- a/Resources/CPSegmentedControlTest/Jakefile +++ b/Resources/CPSegmentedControlTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2013, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPSegmentedControlTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPSegmentedControlTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPSegmentedControlTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPSegmentedControlTest"); task.setIdentifier("com.yourcompany.CPSegmentedControlTest"); @@ -26,7 +26,7 @@ app ("CPSegmentedControlTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPSegmentedControlTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPSegmentedControlTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPSegmentedControlTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPSegmentedControlTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPSegmentedControlTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPSegmentedControlTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPSegmentedControlTest"), FILE.join("Build", "Deployment", "CPSegmentedControlTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPSegmentedControlTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPSegmentedControlTest"), path.join("Build", "Deployment", "CPSegmentedControlTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPSegmentedControlTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPSegmentedControlTest"), FILE.join("Build", "Desktop", "CPSegmentedControlTest", "CPSegmentedControlTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPSegmentedControlTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPSegmentedControlTest"), path.join("Build", "Desktop", "CPSegmentedControlTest", "CPSegmentedControlTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPSegmentedControlTest", "CPSegmentedControlTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPSegmentedControlTest", "CPSegmentedControlTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPSegmentedControlTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPSegmentedControlTest")); + console.log("----------------------------"); } diff --git a/Resources/CPSoundTest/Jakefile b/Resources/CPSoundTest/Jakefile index ba92517b5..400bec84e 100644 --- a/Resources/CPSoundTest/Jakefile +++ b/Resources/CPSoundTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, WireLoad, LLC All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPSoundTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPSoundTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPSoundTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPSoundTest"); task.setIdentifier("com.yourcompany.CPSoundTest"); @@ -26,7 +26,7 @@ app ("CPSoundTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPSoundTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPSoundTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPSoundTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPSoundTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPSoundTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPSoundTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPSoundTest"), FILE.join("Build", "Deployment", "CPSoundTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPSoundTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPSoundTest"), path.join("Build", "Deployment", "CPSoundTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPSoundTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPSoundTest"), FILE.join("Build", "Desktop", "CPSoundTest", "CPSoundTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPSoundTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPSoundTest"), path.join("Build", "Desktop", "CPSoundTest", "CPSoundTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPSoundTest", "CPSoundTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPSoundTest", "CPSoundTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPSoundTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPSoundTest")); + console.log("----------------------------"); } diff --git a/Resources/CPSplitViewDivider/AppController.j b/Resources/CPSplitViewDividerTest/AppController.j similarity index 100% rename from Resources/CPSplitViewDivider/AppController.j rename to Resources/CPSplitViewDividerTest/AppController.j diff --git a/Resources/CPSplitViewDivider/Info.plist b/Resources/CPSplitViewDividerTest/Info.plist similarity index 100% rename from Resources/CPSplitViewDivider/Info.plist rename to Resources/CPSplitViewDividerTest/Info.plist diff --git a/Resources/CPSplitViewDivider/Jakefile b/Resources/CPSplitViewDividerTest/Jakefile similarity index 56% rename from Resources/CPSplitViewDivider/Jakefile rename to Resources/CPSplitViewDividerTest/Jakefile index bbe9a5454..a52430991 100644 --- a/Resources/CPSplitViewDivider/Jakefile +++ b/Resources/CPSplitViewDividerTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CPSplitViewDivider + * CPSplitViewDividerTest * * Created by You on January 12, 2016. * Copyright 2016, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CPSplitViewDivider"; + projectName = "CPSplitViewDividerTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPSplitViewDivider.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPSplitViewDividerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CPSplitViewDivider"); - task.setIdentifier("com.yourcompany.CPSplitViewDivider"); + task.setProductName("CPSplitViewDividerTest"); + task.setIdentifier("com.yourcompany.CPSplitViewDividerTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPSplitViewDivider"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("CPSplitViewDividerTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPSplitViewDivider.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPSplitViewDividerTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPSplitViewDivider.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPSplitViewDividerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPSplitViewDivider/Resources/MainMenu.cib b/Resources/CPSplitViewDividerTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPSplitViewDivider/Resources/MainMenu.cib rename to Resources/CPSplitViewDividerTest/Resources/MainMenu.cib diff --git a/Resources/CPSplitViewDivider/Resources/MainMenu.xib b/Resources/CPSplitViewDividerTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPSplitViewDivider/Resources/MainMenu.xib rename to Resources/CPSplitViewDividerTest/Resources/MainMenu.xib diff --git a/Resources/CPSplitViewDivider/index-debug.html b/Resources/CPSplitViewDividerTest/index-debug.html similarity index 100% rename from Resources/CPSplitViewDivider/index-debug.html rename to Resources/CPSplitViewDividerTest/index-debug.html diff --git a/Resources/CPSplitViewDivider/index.html b/Resources/CPSplitViewDividerTest/index.html similarity index 100% rename from Resources/CPSplitViewDivider/index.html rename to Resources/CPSplitViewDividerTest/index.html diff --git a/Resources/CPSplitViewDivider/main.j b/Resources/CPSplitViewDividerTest/main.j similarity index 100% rename from Resources/CPSplitViewDivider/main.j rename to Resources/CPSplitViewDividerTest/main.j diff --git a/Resources/CPSplitViewTest/Jakefile b/Resources/CPSplitViewTest/Jakefile index a4174055a..b68fa917e 100644 --- a/Resources/CPSplitViewTest/Jakefile +++ b/Resources/CPSplitViewTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, WireLoad All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPSplitViewTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPSplitViewTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPSplitViewTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPSplitViewTest"); task.setIdentifier("com.yourcompany.CPSplitViewTest"); @@ -26,7 +26,7 @@ app ("CPSplitViewTest", function(task) task.setAuthor("WireLoad"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPSplitViewTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPSplitViewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPSplitViewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPSplitViewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPSplitViewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPSplitViewTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPSplitViewTest"), FILE.join("Build", "Deployment", "CPSplitViewTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPSplitViewTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPSplitViewTest"), path.join("Build", "Deployment", "CPSplitViewTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPSplitViewTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPSplitViewTest"), FILE.join("Build", "Desktop", "CPSplitViewTest", "CPSplitViewTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPSplitViewTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPSplitViewTest"), path.join("Build", "Desktop", "CPSplitViewTest", "CPSplitViewTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPSplitViewTest", "CPSplitViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPSplitViewTest", "CPSplitViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPSplitViewTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPSplitViewTest")); + console.log("----------------------------"); } diff --git a/Resources/CPStepperBindings/Jakefile b/Resources/CPStepperBindings/Jakefile deleted file mode 100644 index 45ef82bca..000000000 --- a/Resources/CPStepperBindings/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPStepperBindings - * - * Created by You on November 27, 2012. - * Copyright 2012, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPStepperBindings", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPStepperBindings.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPStepperBindings"); - task.setIdentifier("com.yourcompany.CPStepperBindings"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPStepperBindings"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPStepperBindings"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPStepperBindings", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPStepperBindings", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPStepperBindings")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPStepperBindings"), FILE.join("Build", "Deployment", "CPStepperBindings")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPStepperBindings")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPStepperBindings"), FILE.join("Build", "Desktop", "CPStepperBindings", "CPStepperBindings.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPStepperBindings", "CPStepperBindings.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPStepperBindings")); - print("----------------------------"); -} diff --git a/Resources/CPStepperBindings/AppController.j b/Resources/CPStepperBindingsTest/AppController.j similarity index 100% rename from Resources/CPStepperBindings/AppController.j rename to Resources/CPStepperBindingsTest/AppController.j diff --git a/Resources/CPStepperBindings/Info.plist b/Resources/CPStepperBindingsTest/Info.plist similarity index 100% rename from Resources/CPStepperBindings/Info.plist rename to Resources/CPStepperBindingsTest/Info.plist diff --git a/Resources/CPStepperBindingsTest/Jakefile b/Resources/CPStepperBindingsTest/Jakefile new file mode 100644 index 000000000..341abd513 --- /dev/null +++ b/Resources/CPStepperBindingsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPStepperBindingsTest + * + * Created by You on November 27, 2012. + * Copyright 2012, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPStepperBindingsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPStepperBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPStepperBindingsTest"); + task.setIdentifier("com.yourcompany.CPStepperBindingsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPStepperBindingsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPStepperBindingsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPStepperBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPStepperBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPStepperBindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPStepperBindingsTest"), path.join("Build", "Deployment", "CPStepperBindingsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPStepperBindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPStepperBindingsTest"), path.join("Build", "Desktop", "CPStepperBindingsTest", "CPStepperBindingsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPStepperBindingsTest", "CPStepperBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPStepperBindingsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPStepperBindings/Resources/MainMenu.cib b/Resources/CPStepperBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPStepperBindings/Resources/MainMenu.cib rename to Resources/CPStepperBindingsTest/Resources/MainMenu.cib diff --git a/Resources/CPStepperBindings/Resources/MainMenu.xib b/Resources/CPStepperBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPStepperBindings/Resources/MainMenu.xib rename to Resources/CPStepperBindingsTest/Resources/MainMenu.xib diff --git a/Resources/CPTabView2/Resources/spinner.gif b/Resources/CPStepperBindingsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPTabView2/Resources/spinner.gif rename to Resources/CPStepperBindingsTest/Resources/spinner.gif diff --git a/Resources/CPStepperBindings/index-debug.html b/Resources/CPStepperBindingsTest/index-debug.html similarity index 100% rename from Resources/CPStepperBindings/index-debug.html rename to Resources/CPStepperBindingsTest/index-debug.html diff --git a/Resources/CPStepperBindings/index.html b/Resources/CPStepperBindingsTest/index.html similarity index 100% rename from Resources/CPStepperBindings/index.html rename to Resources/CPStepperBindingsTest/index.html diff --git a/Resources/CPStepperBindings/main.j b/Resources/CPStepperBindingsTest/main.j similarity index 100% rename from Resources/CPStepperBindings/main.j rename to Resources/CPStepperBindingsTest/main.j diff --git a/Resources/CPStepperNibTest/Jakefile b/Resources/CPStepperNibTest/Jakefile index bddff968d..0c747cd4d 100644 --- a/Resources/CPStepperNibTest/Jakefile +++ b/Resources/CPStepperNibTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPStepperNibTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPStepperNibTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPStepperNibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPStepperNibTest"); task.setIdentifier("com.yourcompany.CPStepperNibTest"); @@ -26,7 +26,7 @@ app ("CPStepperNibTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPStepperNibTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPStepperNibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPStepperNibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPStepperNibTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPStepperNibTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPStepperNibTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPStepperNibTest"), FILE.join("Build", "Deployment", "CPStepperNibTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPStepperNibTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPStepperNibTest"), path.join("Build", "Deployment", "CPStepperNibTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPStepperNibTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPStepperNibTest"), FILE.join("Build", "Desktop", "CPStepperNibTest", "CPStepperNibTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPStepperNibTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPStepperNibTest"), path.join("Build", "Desktop", "CPStepperNibTest", "CPStepperNibTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPStepperNibTest", "CPStepperNibTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPStepperNibTest", "CPStepperNibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPStepperNibTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPStepperNibTest")); + console.log("----------------------------"); } diff --git a/Resources/CPTabView2/Jakefile b/Resources/CPTabView2/Jakefile deleted file mode 100644 index 43a74e5db..000000000 --- a/Resources/CPTabView2/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * CPTabView2 - * - * Created by You on August 27, 2010. - * Copyright 2010, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPTabView2", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPTabView2.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPTabView2"); - task.setIdentifier("com.yourcompany.CPTabView2"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTabView2"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPTabView2"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPTabView2", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPTabView2", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPTabView2")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPTabView2"), FILE.join("Build", "Deployment", "CPTabView2")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPTabView2")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPTabView2"), FILE.join("Build", "Desktop", "CPTabView2", "CPTabView2.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPTabView2", "CPTabView2.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPTabView2")); - print("----------------------------"); -} diff --git a/Resources/CPTabView2/AppController.j b/Resources/CPTabView2Test/AppController.j similarity index 100% rename from Resources/CPTabView2/AppController.j rename to Resources/CPTabView2Test/AppController.j diff --git a/Resources/CPTabView2/Info.plist b/Resources/CPTabView2Test/Info.plist similarity index 100% rename from Resources/CPTabView2/Info.plist rename to Resources/CPTabView2Test/Info.plist diff --git a/Resources/CPTabView2Test/Jakefile b/Resources/CPTabView2Test/Jakefile new file mode 100644 index 000000000..858b8239c --- /dev/null +++ b/Resources/CPTabView2Test/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CPTabView2Test + * + * Created by You on August 27, 2010. + * Copyright 2010, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPTabView2Test", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPTabView2Test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPTabView2Test"); + task.setIdentifier("com.yourcompany.CPTabView2Test"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPTabView2Test"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPTabView2Test"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPTabView2Test", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPTabView2Test", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPTabView2Test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPTabView2Test"), path.join("Build", "Deployment", "CPTabView2Test")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPTabView2Test"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPTabView2Test"), path.join("Build", "Desktop", "CPTabView2Test", "CPTabView2Test.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPTabView2Test", "CPTabView2Test.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPTabView2Test")); + console.log("----------------------------"); +} diff --git a/Resources/CPTabViewNib/Resources/spinner.gif b/Resources/CPTabView2Test/Resources/spinner.gif similarity index 100% rename from Resources/CPTabViewNib/Resources/spinner.gif rename to Resources/CPTabView2Test/Resources/spinner.gif diff --git a/Resources/CPTabView2/index-debug.html b/Resources/CPTabView2Test/index-debug.html similarity index 100% rename from Resources/CPTabView2/index-debug.html rename to Resources/CPTabView2Test/index-debug.html diff --git a/Resources/CPTabView2/index.html b/Resources/CPTabView2Test/index.html similarity index 100% rename from Resources/CPTabView2/index.html rename to Resources/CPTabView2Test/index.html diff --git a/Resources/CPTabView2/main.j b/Resources/CPTabView2Test/main.j similarity index 100% rename from Resources/CPTabView2/main.j rename to Resources/CPTabView2Test/main.j diff --git a/Resources/CPTabViewBindings/AppController.j b/Resources/CPTabViewBindingsTest/AppController.j similarity index 100% rename from Resources/CPTabViewBindings/AppController.j rename to Resources/CPTabViewBindingsTest/AppController.j diff --git a/Resources/CPTabViewBindings/Info.plist b/Resources/CPTabViewBindingsTest/Info.plist similarity index 100% rename from Resources/CPTabViewBindings/Info.plist rename to Resources/CPTabViewBindingsTest/Info.plist diff --git a/Resources/CPTabViewBindings/Jakefile b/Resources/CPTabViewBindingsTest/Jakefile similarity index 56% rename from Resources/CPTabViewBindings/Jakefile rename to Resources/CPTabViewBindingsTest/Jakefile index aa6cc29d1..544c0d386 100644 --- a/Resources/CPTabViewBindings/Jakefile +++ b/Resources/CPTabViewBindingsTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CPTabViewBindings + * CPTabViewBindingsTest * * Created by You on February 25, 2015. * Copyright 2015, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CPTabViewBindings"; + projectName = "CPTabViewBindingsTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPTabViewBindings.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPTabViewBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CPTabViewBindings"); - task.setIdentifier("com.yourcompany.CPTabViewBindings"); + task.setProductName("CPTabViewBindingsTest"); + task.setIdentifier("com.yourcompany.CPTabViewBindingsTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTabViewBindings"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("CPTabViewBindingsTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPTabViewBindings.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPTabViewBindingsTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPTabViewBindings.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPTabViewBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPTabViewBindings/Resources/MainMenu.cib b/Resources/CPTabViewBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPTabViewBindings/Resources/MainMenu.cib rename to Resources/CPTabViewBindingsTest/Resources/MainMenu.cib diff --git a/Resources/CPTabViewBindings/Resources/MainMenu.xib b/Resources/CPTabViewBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPTabViewBindings/Resources/MainMenu.xib rename to Resources/CPTabViewBindingsTest/Resources/MainMenu.xib diff --git a/Resources/CPTabViewBindings/index-debug.html b/Resources/CPTabViewBindingsTest/index-debug.html similarity index 100% rename from Resources/CPTabViewBindings/index-debug.html rename to Resources/CPTabViewBindingsTest/index-debug.html diff --git a/Resources/CPTabViewBindings/index.html b/Resources/CPTabViewBindingsTest/index.html similarity index 100% rename from Resources/CPTabViewBindings/index.html rename to Resources/CPTabViewBindingsTest/index.html diff --git a/Resources/CPTabViewBindings/main.j b/Resources/CPTabViewBindingsTest/main.j similarity index 100% rename from Resources/CPTabViewBindings/main.j rename to Resources/CPTabViewBindingsTest/main.j diff --git a/Resources/CPTabViewNib/Jakefile b/Resources/CPTabViewNib/Jakefile deleted file mode 100644 index 64a77f465..000000000 --- a/Resources/CPTabViewNib/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPTabViewNib - * - * Created by Alexander Ljungberg on November 5, 2010. - * Copyright 2010, WireLoad, LLC All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPTabViewNib", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPTabViewNib.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPTabViewNib"); - task.setIdentifier("com.yourcompany.CPTabViewNib"); - task.setVersion("1.0"); - task.setAuthor("WireLoad, LLC"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTabViewNib"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPTabViewNib"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPTabViewNib", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPTabViewNib", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPTabViewNib")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPTabViewNib"), FILE.join("Build", "Deployment", "CPTabViewNib")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPTabViewNib")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPTabViewNib"), FILE.join("Build", "Desktop", "CPTabViewNib", "CPTabViewNib.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPTabViewNib", "CPTabViewNib.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPTabViewNib")); - print("----------------------------"); -} diff --git a/Resources/CPTabViewNib/AppController.j b/Resources/CPTabViewNibTest/AppController.j similarity index 100% rename from Resources/CPTabViewNib/AppController.j rename to Resources/CPTabViewNibTest/AppController.j diff --git a/Resources/CPTabViewNib/Info.plist b/Resources/CPTabViewNibTest/Info.plist similarity index 100% rename from Resources/CPTabViewNib/Info.plist rename to Resources/CPTabViewNibTest/Info.plist diff --git a/Resources/CPTabViewNibTest/Jakefile b/Resources/CPTabViewNibTest/Jakefile new file mode 100644 index 000000000..713a5ec3d --- /dev/null +++ b/Resources/CPTabViewNibTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPTabViewNibTest + * + * Created by Alexander Ljungberg on November 5, 2010. + * Copyright 2010, WireLoad, LLC All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPTabViewNibTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPTabViewNibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPTabViewNibTest"); + task.setIdentifier("com.yourcompany.CPTabViewNibTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad, LLC"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPTabViewNibTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPTabViewNibTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPTabViewNibTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPTabViewNibTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPTabViewNibTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPTabViewNibTest"), path.join("Build", "Deployment", "CPTabViewNibTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPTabViewNibTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPTabViewNibTest"), path.join("Build", "Desktop", "CPTabViewNibTest", "CPTabViewNibTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPTabViewNibTest", "CPTabViewNibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPTabViewNibTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPTabViewNib/Resources/CollectionViewItem.cib b/Resources/CPTabViewNibTest/Resources/CollectionViewItem.cib similarity index 100% rename from Resources/CPTabViewNib/Resources/CollectionViewItem.cib rename to Resources/CPTabViewNibTest/Resources/CollectionViewItem.cib diff --git a/Resources/CPTabViewNib/Resources/CollectionViewItem.xib b/Resources/CPTabViewNibTest/Resources/CollectionViewItem.xib similarity index 100% rename from Resources/CPTabViewNib/Resources/CollectionViewItem.xib rename to Resources/CPTabViewNibTest/Resources/CollectionViewItem.xib diff --git a/Resources/CPTabViewNib/Resources/MainMenu.cib b/Resources/CPTabViewNibTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPTabViewNib/Resources/MainMenu.cib rename to Resources/CPTabViewNibTest/Resources/MainMenu.cib diff --git a/Resources/CPTabViewNib/Resources/MainMenu.xib b/Resources/CPTabViewNibTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPTabViewNib/Resources/MainMenu.xib rename to Resources/CPTabViewNibTest/Resources/MainMenu.xib diff --git a/Resources/CPTabViewNib/Resources/TabViewItem.cib b/Resources/CPTabViewNibTest/Resources/TabViewItem.cib similarity index 100% rename from Resources/CPTabViewNib/Resources/TabViewItem.cib rename to Resources/CPTabViewNibTest/Resources/TabViewItem.cib diff --git a/Resources/CPTabViewNib/Resources/TabViewItem.xib b/Resources/CPTabViewNibTest/Resources/TabViewItem.xib similarity index 100% rename from Resources/CPTabViewNib/Resources/TabViewItem.xib rename to Resources/CPTabViewNibTest/Resources/TabViewItem.xib diff --git a/Resources/CPTableViewGroupRows/Resources/spinner.gif b/Resources/CPTabViewNibTest/Resources/spinner.gif similarity index 100% rename from Resources/CPTableViewGroupRows/Resources/spinner.gif rename to Resources/CPTabViewNibTest/Resources/spinner.gif diff --git a/Resources/CPTabViewNib/TabViewController.j b/Resources/CPTabViewNibTest/TabViewController.j similarity index 100% rename from Resources/CPTabViewNib/TabViewController.j rename to Resources/CPTabViewNibTest/TabViewController.j diff --git a/Resources/CPTabViewNib/index-debug.html b/Resources/CPTabViewNibTest/index-debug.html similarity index 100% rename from Resources/CPTabViewNib/index-debug.html rename to Resources/CPTabViewNibTest/index-debug.html diff --git a/Resources/CPTabViewNib/index.html b/Resources/CPTabViewNibTest/index.html similarity index 100% rename from Resources/CPTabViewNib/index.html rename to Resources/CPTabViewNibTest/index.html diff --git a/Resources/CPTabViewNib/main.j b/Resources/CPTabViewNibTest/main.j similarity index 100% rename from Resources/CPTabViewNib/main.j rename to Resources/CPTabViewNibTest/main.j diff --git a/Resources/CPTableViewGroupRows/Jakefile b/Resources/CPTableViewGroupRows/Jakefile deleted file mode 100644 index 01d9f2fa1..000000000 --- a/Resources/CPTableViewGroupRows/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * CPTableViewGroupRows - * - * Created by You on November 5, 2011. - * Copyright 2011, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPTableViewGroupRows", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPTableViewGroupRows.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPTableViewGroupRows"); - task.setIdentifier("com.yourcompany.CPTableViewGroupRows"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTableViewGroupRows"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPTableViewGroupRows"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPTableViewGroupRows", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPTableViewGroupRows", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPTableViewGroupRows")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPTableViewGroupRows"), FILE.join("Build", "Deployment", "CPTableViewGroupRows")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPTableViewGroupRows")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPTableViewGroupRows"), FILE.join("Build", "Desktop", "CPTableViewGroupRows", "CPTableViewGroupRows.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPTableViewGroupRows", "CPTableViewGroupRows.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPTableViewGroupRows")); - print("----------------------------"); -} diff --git a/Resources/CPTableViewGroupRows/AppController.j b/Resources/CPTableViewGroupRowsTest/AppController.j similarity index 100% rename from Resources/CPTableViewGroupRows/AppController.j rename to Resources/CPTableViewGroupRowsTest/AppController.j diff --git a/Resources/CPTableViewGroupRows/Info.plist b/Resources/CPTableViewGroupRowsTest/Info.plist similarity index 100% rename from Resources/CPTableViewGroupRows/Info.plist rename to Resources/CPTableViewGroupRowsTest/Info.plist diff --git a/Resources/CPTableViewGroupRowsTest/Jakefile b/Resources/CPTableViewGroupRowsTest/Jakefile new file mode 100644 index 000000000..19a4febae --- /dev/null +++ b/Resources/CPTableViewGroupRowsTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CPTableViewGroupRowsTest + * + * Created by You on November 5, 2011. + * Copyright 2011, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPTableViewGroupRowsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPTableViewGroupRowsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPTableViewGroupRowsTest"); + task.setIdentifier("com.yourcompany.CPTableViewGroupRowsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPTableViewGroupRowsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPTableViewGroupRowsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPTableViewGroupRowsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPTableViewGroupRowsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPTableViewGroupRowsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPTableViewGroupRowsTest"), path.join("Build", "Deployment", "CPTableViewGroupRowsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPTableViewGroupRowsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPTableViewGroupRowsTest"), path.join("Build", "Desktop", "CPTableViewGroupRowsTest", "CPTableViewGroupRowsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPTableViewGroupRowsTest", "CPTableViewGroupRowsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPTableViewGroupRowsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPTextField/Resources/spinner.gif b/Resources/CPTableViewGroupRowsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPTextField/Resources/spinner.gif rename to Resources/CPTableViewGroupRowsTest/Resources/spinner.gif diff --git a/Resources/CPTableViewGroupRows/index-debug.html b/Resources/CPTableViewGroupRowsTest/index-debug.html similarity index 100% rename from Resources/CPTableViewGroupRows/index-debug.html rename to Resources/CPTableViewGroupRowsTest/index-debug.html diff --git a/Resources/CPTableViewGroupRows/index.html b/Resources/CPTableViewGroupRowsTest/index.html similarity index 100% rename from Resources/CPTableViewGroupRows/index.html rename to Resources/CPTableViewGroupRowsTest/index.html diff --git a/Resources/CPTableViewGroupRows/main.j b/Resources/CPTableViewGroupRowsTest/main.j similarity index 100% rename from Resources/CPTableViewGroupRows/main.j rename to Resources/CPTableViewGroupRowsTest/main.j diff --git a/Resources/CPTextField/Jakefile b/Resources/CPTextField/Jakefile deleted file mode 100644 index bf53a9a61..000000000 --- a/Resources/CPTextField/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * CPTextField - * - * Created by Alexander Ljungberg on August 2, 2010. - * Copyright 2010, WireLoad, LLC All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPTextField", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPTextField.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPTextField"); - task.setIdentifier("com.yourcompany.CPTextField"); - task.setVersion("1.0"); - task.setAuthor("WireLoad, LLC"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTextField"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPTextField"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPTextField", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPTextField", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPTextField")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPTextField"), FILE.join("Build", "Deployment", "CPTextField")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPTextField")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPTextField"), FILE.join("Build", "Desktop", "CPTextField", "CPTextField.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPTextField", "CPTextField.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPTextField")); - print("----------------------------"); -} diff --git a/Resources/CPTextFieldEditingStyleTest/Jakefile b/Resources/CPTextFieldEditingStyleTest/Jakefile index 8d30e7c27..df5d138bc 100644 --- a/Resources/CPTextFieldEditingStyleTest/Jakefile +++ b/Resources/CPTextFieldEditingStyleTest/Jakefile @@ -5,12 +5,12 @@ * Created by Alexandre Wilhelm on June 9, 2014. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPTextFieldEditingStyleTest"; @@ -20,10 +20,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPTextFieldEditingStyleTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPTextFieldEditingStyleTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPTextFieldEditingStyleTest"); task.setIdentifier("com.yourcompany.CPTextFieldEditingStyleTest"); @@ -31,7 +31,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPTextFieldEditingStyleTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -66,45 +66,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPTextFieldEditingStyleTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPTextFieldEditingStyleTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPTextFieldEditingStyleTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPTextFieldEditingStyleTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -113,14 +113,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -128,17 +128,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -148,34 +148,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPTextFieldMovementsTest/Jakefile b/Resources/CPTextFieldMovementsTest/Jakefile index 702305450..87b14dbb0 100644 --- a/Resources/CPTextFieldMovementsTest/Jakefile +++ b/Resources/CPTextFieldMovementsTest/Jakefile @@ -5,12 +5,12 @@ * Created by Alexandre Wilhelm on October 29, 2013. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPTextFieldMovementsTest"; @@ -20,10 +20,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPTextFieldMovementsTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPTextFieldMovementsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPTextFieldMovementsTest"); task.setIdentifier("com.yourcompany.CPTextFieldMovementsTest"); @@ -31,7 +31,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPTextFieldMovementsTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -66,45 +66,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPTextFieldMovementsTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPTextFieldMovementsTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPTextFieldMovementsTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPTextFieldMovementsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -113,14 +113,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -128,17 +128,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -148,34 +148,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPTextFieldMultiline/AppController.j b/Resources/CPTextFieldMultiLineTest/AppController.j similarity index 100% rename from Resources/CPTextFieldMultiline/AppController.j rename to Resources/CPTextFieldMultiLineTest/AppController.j diff --git a/Resources/CPTextFieldMultiline/Info.plist b/Resources/CPTextFieldMultiLineTest/Info.plist similarity index 100% rename from Resources/CPTextFieldMultiline/Info.plist rename to Resources/CPTextFieldMultiLineTest/Info.plist diff --git a/Resources/CPTextFieldMultiline/Jakefile b/Resources/CPTextFieldMultiLineTest/Jakefile similarity index 56% rename from Resources/CPTextFieldMultiline/Jakefile rename to Resources/CPTextFieldMultiLineTest/Jakefile index 6d39494ac..3164a51ca 100644 --- a/Resources/CPTextFieldMultiline/Jakefile +++ b/Resources/CPTextFieldMultiLineTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CPTextFielMultine + * CPTextFieldMultiLineTest * * Created by You on November 12, 2014. * Copyright 2014, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CPTextFielMultine"; + projectName = "CPTextFieldMultiLineTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPTextFielMultine.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPTextFieldMultiLineTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CPTextFielMultine"); - task.setIdentifier("com.yourcompany.CPTextFielMultine"); + task.setProductName("CPTextFieldMultiLineTest"); + task.setIdentifier("com.yourcompany.CPTextFieldMultiLineTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTextFielMultine"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("CPTextFieldMultiLineTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPTextFielMultine.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPTextFieldMultiLineTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPTextFielMultine.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPTextFieldMultiLineTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPTextFieldMultiline/Resources/MainMenu.cib b/Resources/CPTextFieldMultiLineTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPTextFieldMultiline/Resources/MainMenu.cib rename to Resources/CPTextFieldMultiLineTest/Resources/MainMenu.cib diff --git a/Resources/CPTextFieldMultiline/Resources/MainMenu.xib b/Resources/CPTextFieldMultiLineTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPTextFieldMultiline/Resources/MainMenu.xib rename to Resources/CPTextFieldMultiLineTest/Resources/MainMenu.xib diff --git a/Resources/CPTextField/index-debug.html b/Resources/CPTextFieldMultiLineTest/index-debug.html similarity index 100% rename from Resources/CPTextField/index-debug.html rename to Resources/CPTextFieldMultiLineTest/index-debug.html diff --git a/Resources/CPTextField/index.html b/Resources/CPTextFieldMultiLineTest/index.html similarity index 100% rename from Resources/CPTextField/index.html rename to Resources/CPTextFieldMultiLineTest/index.html diff --git a/Resources/CPTextFieldMultiline/main.j b/Resources/CPTextFieldMultiLineTest/main.j similarity index 100% rename from Resources/CPTextFieldMultiline/main.j rename to Resources/CPTextFieldMultiLineTest/main.j diff --git a/Resources/CPTextField/AppController.j b/Resources/CPTextFieldTest/AppController.j similarity index 100% rename from Resources/CPTextField/AppController.j rename to Resources/CPTextFieldTest/AppController.j diff --git a/Resources/CPTextField/Info.plist b/Resources/CPTextFieldTest/Info.plist similarity index 100% rename from Resources/CPTextField/Info.plist rename to Resources/CPTextFieldTest/Info.plist diff --git a/Resources/CPTextFieldTest/Jakefile b/Resources/CPTextFieldTest/Jakefile new file mode 100644 index 000000000..2c57b9160 --- /dev/null +++ b/Resources/CPTextFieldTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CPTextFieldTest + * + * Created by Alexander Ljungberg on August 2, 2010. + * Copyright 2010, WireLoad, LLC All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPTextFieldTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPTextFieldTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPTextFieldTest"); + task.setIdentifier("com.yourcompany.CPTextFieldTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad, LLC"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPTextFieldTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPTextFieldTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPTextFieldTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPTextFieldTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPTextFieldTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPTextFieldTest"), path.join("Build", "Deployment", "CPTextFieldTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPTextFieldTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPTextFieldTest"), path.join("Build", "Desktop", "CPTextFieldTest", "CPTextFieldTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPTextFieldTest", "CPTextFieldTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPTextFieldTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPTextView/Resources/spinner.gif b/Resources/CPTextFieldTest/Resources/spinner.gif similarity index 100% rename from Resources/CPTextView/Resources/spinner.gif rename to Resources/CPTextFieldTest/Resources/spinner.gif diff --git a/Resources/CPTextFieldMultiline/index-debug.html b/Resources/CPTextFieldTest/index-debug.html similarity index 100% rename from Resources/CPTextFieldMultiline/index-debug.html rename to Resources/CPTextFieldTest/index-debug.html diff --git a/Resources/CPTextFieldMultiline/index.html b/Resources/CPTextFieldTest/index.html similarity index 100% rename from Resources/CPTextFieldMultiline/index.html rename to Resources/CPTextFieldTest/index.html diff --git a/Resources/CPTextField/main.j b/Resources/CPTextFieldTest/main.j similarity index 100% rename from Resources/CPTextField/main.j rename to Resources/CPTextFieldTest/main.j diff --git a/Resources/CPTextView/Jakefile b/Resources/CPTextView/Jakefile deleted file mode 100644 index bd57b7a0d..000000000 --- a/Resources/CPTextView/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * CPLevelIndicator - * - * Created by Alexander Ljungberg on May 28, 2011. - * Copyright 2011, WireLoad All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPLevelIndicator", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPLevelIndicator.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPLevelIndicator"); - task.setIdentifier("com.yourcompany.CPLevelIndicator"); - task.setVersion("1.0"); - task.setAuthor("WireLoad"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPLevelIndicator"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPLevelIndicator"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPLevelIndicator", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPLevelIndicator", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPLevelIndicator")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Deployment", "CPLevelIndicator")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPLevelIndicator")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPLevelIndicator")); - print("----------------------------"); -} diff --git a/Resources/CPTextViewCibTest/Jakefile b/Resources/CPTextViewCibTest/Jakefile index eb85f3135..7d468420b 100644 --- a/Resources/CPTextViewCibTest/Jakefile +++ b/Resources/CPTextViewCibTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2014, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPTextViewCibTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPTextViewCibTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPTextViewCibTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPTextViewCibTest"); task.setIdentifier("com.yourcompany.CPTextViewCibTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPTextViewCibTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPTextViewCibTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPTextViewCibTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPTextViewCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPTextViewCibTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPTextViewDelegateAndNotifications/AppController.j b/Resources/CPTextViewDelegateAndNotificationsTest/AppController.j similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/AppController.j rename to Resources/CPTextViewDelegateAndNotificationsTest/AppController.j diff --git a/Resources/CPTextViewDelegateAndNotifications/Info.plist b/Resources/CPTextViewDelegateAndNotificationsTest/Info.plist similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/Info.plist rename to Resources/CPTextViewDelegateAndNotificationsTest/Info.plist diff --git a/Resources/CPTextViewDelegateAndNotifications/Jakefile b/Resources/CPTextViewDelegateAndNotificationsTest/Jakefile similarity index 59% rename from Resources/CPTextViewDelegateAndNotifications/Jakefile rename to Resources/CPTextViewDelegateAndNotificationsTest/Jakefile index 5d8dc3484..8f2d96f9d 100644 --- a/Resources/CPTextViewDelegateAndNotifications/Jakefile +++ b/Resources/CPTextViewDelegateAndNotificationsTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CPTextViewDelegateAndNotifications + * CPTextViewDelegateAndNotificationsTest * * Created by You on December 22, 2017. * Copyright 2017, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CPTextViewDelegateAndNotifications"; + projectName = "CPTextViewDelegateAndNotificationsTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPTextViewDelegateAndNotifications.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPTextViewDelegateAndNotificationsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CPTextViewDelegateAndNotifications"); - task.setIdentifier("com.yourcompany.CPTextViewDelegateAndNotifications"); + task.setProductName("CPTextViewDelegateAndNotificationsTest"); + task.setIdentifier("com.yourcompany.CPTextViewDelegateAndNotificationsTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTextViewDelegateAndNotifications"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("CPTextViewDelegateAndNotificationsTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPTextViewDelegateAndNotifications/NotificationStatistics.j b/Resources/CPTextViewDelegateAndNotificationsTest/NotificationStatistics.j similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/NotificationStatistics.j rename to Resources/CPTextViewDelegateAndNotificationsTest/NotificationStatistics.j diff --git a/Resources/CPTextViewDelegateAndNotifications/Resources/MainMenu.cib b/Resources/CPTextViewDelegateAndNotificationsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/Resources/MainMenu.cib rename to Resources/CPTextViewDelegateAndNotificationsTest/Resources/MainMenu.cib diff --git a/Resources/CPTextViewDelegateAndNotifications/Resources/MainMenu.xib b/Resources/CPTextViewDelegateAndNotificationsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/Resources/MainMenu.xib rename to Resources/CPTextViewDelegateAndNotificationsTest/Resources/MainMenu.xib diff --git a/Resources/CPTextViewDelegateAndNotifications/index-debug.html b/Resources/CPTextViewDelegateAndNotificationsTest/index-debug.html similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/index-debug.html rename to Resources/CPTextViewDelegateAndNotificationsTest/index-debug.html diff --git a/Resources/CPTextViewDelegateAndNotifications/index.html b/Resources/CPTextViewDelegateAndNotificationsTest/index.html similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/index.html rename to Resources/CPTextViewDelegateAndNotificationsTest/index.html diff --git a/Resources/CPTextViewDelegateAndNotifications/main.j b/Resources/CPTextViewDelegateAndNotificationsTest/main.j similarity index 100% rename from Resources/CPTextViewDelegateAndNotifications/main.j rename to Resources/CPTextViewDelegateAndNotificationsTest/main.j diff --git a/Resources/CPTimeZone/Jakefile b/Resources/CPTimeZone/Jakefile deleted file mode 100644 index 91283f3eb..000000000 --- a/Resources/CPTimeZone/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * CPTimeZone - * - * Created by You on April 16, 2013. - * Copyright 2013, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPTimeZone", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPTimeZone.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPTimeZone"); - task.setIdentifier("com.yourcompany.CPTimeZone"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPTimeZone"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPTimeZone"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPTimeZone", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPTimeZone", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPTimeZone")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPTimeZone"), FILE.join("Build", "Deployment", "CPTimeZone")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPTimeZone")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPTimeZone"), FILE.join("Build", "Desktop", "CPTimeZone", "CPTimeZone.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPTimeZone", "CPTimeZone.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPTimeZone")); - print("----------------------------"); -} diff --git a/Resources/CPTimeZone/AppController.j b/Resources/CPTimeZoneTest/AppController.j similarity index 100% rename from Resources/CPTimeZone/AppController.j rename to Resources/CPTimeZoneTest/AppController.j diff --git a/Resources/CPTimeZone/Info.plist b/Resources/CPTimeZoneTest/Info.plist similarity index 100% rename from Resources/CPTimeZone/Info.plist rename to Resources/CPTimeZoneTest/Info.plist diff --git a/Resources/CPTimeZoneTest/Jakefile b/Resources/CPTimeZoneTest/Jakefile new file mode 100644 index 000000000..0205d6548 --- /dev/null +++ b/Resources/CPTimeZoneTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CPTimeZoneTest + * + * Created by You on April 16, 2013. + * Copyright 2013, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPTimeZoneTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPTimeZoneTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPTimeZoneTest"); + task.setIdentifier("com.yourcompany.CPTimeZoneTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPTimeZoneTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPTimeZoneTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPTimeZoneTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPTimeZoneTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPTimeZoneTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPTimeZoneTest"), path.join("Build", "Deployment", "CPTimeZoneTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPTimeZoneTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPTimeZoneTest"), path.join("Build", "Desktop", "CPTimeZoneTest", "CPTimeZoneTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPTimeZoneTest", "CPTimeZoneTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPTimeZoneTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPTimeZone/Resources/MainMenu.cib b/Resources/CPTimeZoneTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPTimeZone/Resources/MainMenu.cib rename to Resources/CPTimeZoneTest/Resources/MainMenu.cib diff --git a/Resources/CPTimeZone/Resources/MainMenu.xib b/Resources/CPTimeZoneTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPTimeZone/Resources/MainMenu.xib rename to Resources/CPTimeZoneTest/Resources/MainMenu.xib diff --git a/Resources/CPTimeZone/Resources/spinner.gif b/Resources/CPTimeZoneTest/Resources/spinner.gif similarity index 100% rename from Resources/CPTimeZone/Resources/spinner.gif rename to Resources/CPTimeZoneTest/Resources/spinner.gif diff --git a/Resources/CPTimeZone/index-debug.html b/Resources/CPTimeZoneTest/index-debug.html similarity index 100% rename from Resources/CPTimeZone/index-debug.html rename to Resources/CPTimeZoneTest/index-debug.html diff --git a/Resources/CPTimeZone/index.html b/Resources/CPTimeZoneTest/index.html similarity index 100% rename from Resources/CPTimeZone/index.html rename to Resources/CPTimeZoneTest/index.html diff --git a/Resources/CPTimeZone/main.j b/Resources/CPTimeZoneTest/main.j similarity index 100% rename from Resources/CPTimeZone/main.j rename to Resources/CPTimeZoneTest/main.j diff --git a/Resources/CPTokenFieldTest/Jakefile b/Resources/CPTokenFieldTest/Jakefile index 329de3d67..a2e08ea44 100644 --- a/Resources/CPTokenFieldTest/Jakefile +++ b/Resources/CPTokenFieldTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, WireLoad, LLC All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPTokenFieldTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPTokenFieldTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPTokenFieldTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPTokenFieldTest"); task.setIdentifier("com.yourcompany.CPTokenFieldTest"); @@ -26,7 +26,7 @@ app ("CPTokenFieldTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPTokenFieldTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPTokenFieldTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPTokenFieldTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPTokenFieldTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPTokenFieldTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPTokenFieldTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPTokenFieldTest"), FILE.join("Build", "Deployment", "CPTokenFieldTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPTokenFieldTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPTokenFieldTest"), path.join("Build", "Deployment", "CPTokenFieldTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPTokenFieldTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPTokenFieldTest"), FILE.join("Build", "Desktop", "CPTokenFieldTest", "CPTokenFieldTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPTokenFieldTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPTokenFieldTest"), path.join("Build", "Desktop", "CPTokenFieldTest", "CPTokenFieldTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPTokenFieldTest", "CPTokenFieldTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPTokenFieldTest", "CPTokenFieldTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPTokenFieldTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPTokenFieldTest")); + console.log("----------------------------"); } diff --git a/Resources/CPToolTip/Jakefile b/Resources/CPToolTip/Jakefile deleted file mode 100644 index 8f62ca5cd..000000000 --- a/Resources/CPToolTip/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * tooltips - * - * Created by You on April 26, 2011. - * Copyright 2011, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("tooltips", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "tooltips.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("tooltips"); - task.setIdentifier("com.yourcompany.tooltips"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("tooltips"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["tooltips"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "tooltips", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "tooltips", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "tooltips")); - OS.system(["press", "-f", FILE.join("Build", "Release", "tooltips"), FILE.join("Build", "Deployment", "tooltips")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "tooltips")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "tooltips"), FILE.join("Build", "Desktop", "tooltips", "tooltips.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "tooltips", "tooltips.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "tooltips")); - print("----------------------------"); -} diff --git a/Resources/CPToolTip/AppController.j b/Resources/CPToolTipTest/AppController.j similarity index 100% rename from Resources/CPToolTip/AppController.j rename to Resources/CPToolTipTest/AppController.j diff --git a/Resources/CPToolTip/Info.plist b/Resources/CPToolTipTest/Info.plist similarity index 100% rename from Resources/CPToolTip/Info.plist rename to Resources/CPToolTipTest/Info.plist diff --git a/Resources/CPToolTipTest/Jakefile b/Resources/CPToolTipTest/Jakefile new file mode 100644 index 000000000..97dc86e51 --- /dev/null +++ b/Resources/CPToolTipTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CPToolTipTest + * + * Created by You on April 26, 2011. + * Copyright 2011, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPToolTipTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPToolTipTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPToolTipTest"); + task.setIdentifier("com.yourcompany.CPToolTipTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPToolTipTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPToolTipTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPToolTipTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPToolTipTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPToolTipTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPToolTipTest"), path.join("Build", "Deployment", "CPToolTipTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPToolTipTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPToolTipTest"), path.join("Build", "Desktop", "CPToolTipTest", "CPToolTipTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPToolTipTest", "CPToolTipTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPToolTipTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPToolTip/Resources/spinner.gif b/Resources/CPToolTipTest/Resources/spinner.gif similarity index 100% rename from Resources/CPToolTip/Resources/spinner.gif rename to Resources/CPToolTipTest/Resources/spinner.gif diff --git a/Resources/CPToolTip/Resources/test.png b/Resources/CPToolTipTest/Resources/test.png similarity index 100% rename from Resources/CPToolTip/Resources/test.png rename to Resources/CPToolTipTest/Resources/test.png diff --git a/Resources/CPToolTip/index-debug.html b/Resources/CPToolTipTest/index-debug.html similarity index 100% rename from Resources/CPToolTip/index-debug.html rename to Resources/CPToolTipTest/index-debug.html diff --git a/Resources/CPToolTip/index.html b/Resources/CPToolTipTest/index.html similarity index 100% rename from Resources/CPToolTip/index.html rename to Resources/CPToolTipTest/index.html diff --git a/Resources/CPToolTip/main.j b/Resources/CPToolTipTest/main.j similarity index 100% rename from Resources/CPToolTip/main.j rename to Resources/CPToolTipTest/main.j diff --git a/Resources/CPToolbarTest/Jakefile b/Resources/CPToolbarTest/Jakefile index 157653e69..37c13f52c 100644 --- a/Resources/CPToolbarTest/Jakefile +++ b/Resources/CPToolbarTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, SlevenBits Ltd. All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPToolbarTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPToolbarTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPToolbarTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPToolbarTest"); task.setIdentifier("com.slevenbits.CPToolbarTest"); @@ -26,7 +26,7 @@ app ("CPToolbarTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPToolbarTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPToolbarTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPToolbarTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPToolbarTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPToolbarTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPToolbarTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPToolbarTest"), FILE.join("Build", "Deployment", "CPToolbarTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPToolbarTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPToolbarTest"), path.join("Build", "Deployment", "CPToolbarTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPToolbarTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPToolbarTest"), FILE.join("Build", "Desktop", "CPToolbarTest", "CPToolbarTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPToolbarTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPToolbarTest"), path.join("Build", "Desktop", "CPToolbarTest", "CPToolbarTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPToolbarTest", "CPToolbarTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPToolbarTest", "CPToolbarTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPToolbarTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPToolbarTest")); + console.log("----------------------------"); } diff --git a/Resources/CPTreeControllerTest/Jakefile b/Resources/CPTreeControllerTest/Jakefile index 8f62ca5cd..968573d7b 100644 --- a/Resources/CPTreeControllerTest/Jakefile +++ b/Resources/CPTreeControllerTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("tooltips", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "tooltips.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "tooltips.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("tooltips"); task.setIdentifier("com.yourcompany.tooltips"); @@ -26,7 +26,7 @@ app ("tooltips", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("tooltips"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "tooltips", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "tooltips", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "tooltips", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "tooltips", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "tooltips")); - OS.system(["press", "-f", FILE.join("Build", "Release", "tooltips"), FILE.join("Build", "Deployment", "tooltips")]); + fs.mkdirSync(path.join("Build", "Deployment", "tooltips"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "tooltips"), path.join("Build", "Deployment", "tooltips")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "tooltips")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "tooltips"), FILE.join("Build", "Desktop", "tooltips", "tooltips.app")); + fs.mkdirSync(path.join("Build", "Desktop", "tooltips"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "tooltips"), path.join("Build", "Desktop", "tooltips", "tooltips.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "tooltips", "tooltips.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "tooltips", "tooltips.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "tooltips")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "tooltips")); + console.log("----------------------------"); } diff --git a/Resources/CPURLConnectionAsyncTest/Jakefile b/Resources/CPURLConnectionAsyncTest/Jakefile index 8012b7016..44a5aafa8 100644 --- a/Resources/CPURLConnectionAsyncTest/Jakefile +++ b/Resources/CPURLConnectionAsyncTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPURLConnectionAsyncTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPURLConnectionAsyncTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPURLConnectionAsyncTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPURLConnectionAsyncTest"); task.setIdentifier("com.yourcompany.CPURLConnectionAsyncTest"); @@ -26,7 +26,7 @@ app ("CPURLConnectionAsyncTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPURLConnectionAsyncTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPURLConnectionAsyncTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPURLConnectionAsyncTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPURLConnectionAsyncTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPURLConnectionAsyncTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPURLConnectionAsyncTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPURLConnectionAsyncTest"), FILE.join("Build", "Deployment", "CPURLConnectionAsyncTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPURLConnectionAsyncTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPURLConnectionAsyncTest"), path.join("Build", "Deployment", "CPURLConnectionAsyncTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPURLConnectionAsyncTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPURLConnectionAsyncTest"), FILE.join("Build", "Desktop", "CPURLConnectionAsyncTest", "CPURLConnectionAsyncTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPURLConnectionAsyncTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPURLConnectionAsyncTest"), path.join("Build", "Desktop", "CPURLConnectionAsyncTest", "CPURLConnectionAsyncTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPURLConnectionAsyncTest", "CPURLConnectionAsyncTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPURLConnectionAsyncTest", "CPURLConnectionAsyncTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPURLConnectionAsyncTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPURLConnectionAsyncTest")); + console.log("----------------------------"); } diff --git a/Resources/CPURLConnectionSynchronousTest/Jakefile b/Resources/CPURLConnectionSynchronousTest/Jakefile index d92409917..001bf1f8c 100644 --- a/Resources/CPURLConnectionSynchronousTest/Jakefile +++ b/Resources/CPURLConnectionSynchronousTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPURLConnectionSynchronousTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPURLConnectionSynchronousTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPURLConnectionSynchronousTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPURLConnectionSynchronousTest"); task.setIdentifier("com.yourcompany.CPURLConnectionSynchronousTest"); @@ -26,7 +26,7 @@ app ("CPURLConnectionSynchronousTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPURLConnectionSynchronousTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPURLConnectionSynchronousTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPURLConnectionSynchronousTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPURLConnectionSynchronousTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPURLConnectionSynchronousTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPURLConnectionSynchronousTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPURLConnectionSynchronousTest"), FILE.join("Build", "Deployment", "CPURLConnectionSynchronousTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPURLConnectionSynchronousTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPURLConnectionSynchronousTest"), path.join("Build", "Deployment", "CPURLConnectionSynchronousTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPURLConnectionSynchronousTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPURLConnectionSynchronousTest"), FILE.join("Build", "Desktop", "CPURLConnectionSynchronousTest", "CPURLConnectionSynchronousTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPURLConnectionSynchronousTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPURLConnectionSynchronousTest"), path.join("Build", "Desktop", "CPURLConnectionSynchronousTest", "CPURLConnectionSynchronousTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPURLConnectionSynchronousTest", "CPURLConnectionSynchronousTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPURLConnectionSynchronousTest", "CPURLConnectionSynchronousTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPURLConnectionSynchronousTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPURLConnectionSynchronousTest")); + console.log("----------------------------"); } diff --git a/Resources/CPUserDefaults/Jakefile b/Resources/CPUserDefaults/Jakefile deleted file mode 100644 index 8d336e3ff..000000000 --- a/Resources/CPUserDefaults/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * CPUserDefaults - * - * Created by You on October 13, 2010. - * Copyright 2010, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CPUserDefaults", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "CPUserDefaults.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CPUserDefaults"); - task.setIdentifier("com.yourcompany.CPUserDefaults"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPUserDefaults"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CPUserDefaults"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CPUserDefaults", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CPUserDefaults", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CPUserDefaults")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPUserDefaults"), FILE.join("Build", "Deployment", "CPUserDefaults")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CPUserDefaults")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPUserDefaults"), FILE.join("Build", "Desktop", "CPUserDefaults", "CPUserDefaults.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CPUserDefaults", "CPUserDefaults.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPUserDefaults")); - print("----------------------------"); -} diff --git a/Resources/CPUserDefaultsControllerTest/Jakefile b/Resources/CPUserDefaultsControllerTest/Jakefile index 856aa9289..ea85e95be 100644 --- a/Resources/CPUserDefaultsControllerTest/Jakefile +++ b/Resources/CPUserDefaultsControllerTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, WireLoad All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPUserDefaultsControllerTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPUserDefaultsControllerTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPUserDefaultsControllerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPUserDefaultsControllerTest"); task.setIdentifier("com.yourcompany.CPUserDefaultsControllerTest"); @@ -26,7 +26,7 @@ app ("CPUserDefaultsControllerTest", function(task) task.setAuthor("WireLoad"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPUserDefaultsControllerTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPUserDefaultsControllerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPUserDefaultsControllerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPUserDefaultsControllerTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPUserDefaultsControllerTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPUserDefaultsControllerTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPUserDefaultsControllerTest"), FILE.join("Build", "Deployment", "CPUserDefaultsControllerTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPUserDefaultsControllerTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPUserDefaultsControllerTest"), path.join("Build", "Deployment", "CPUserDefaultsControllerTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPUserDefaultsControllerTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPUserDefaultsControllerTest"), FILE.join("Build", "Desktop", "CPUserDefaultsControllerTest", "CPUserDefaultsControllerTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPUserDefaultsControllerTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPUserDefaultsControllerTest"), path.join("Build", "Desktop", "CPUserDefaultsControllerTest", "CPUserDefaultsControllerTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPUserDefaultsControllerTest", "CPUserDefaultsControllerTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPUserDefaultsControllerTest", "CPUserDefaultsControllerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPUserDefaultsControllerTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPUserDefaultsControllerTest")); + console.log("----------------------------"); } diff --git a/Resources/CPUserDefaults/AppController.j b/Resources/CPUserDefaultsTest/AppController.j similarity index 100% rename from Resources/CPUserDefaults/AppController.j rename to Resources/CPUserDefaultsTest/AppController.j diff --git a/Resources/CPUserDefaults/Info.plist b/Resources/CPUserDefaultsTest/Info.plist similarity index 100% rename from Resources/CPUserDefaults/Info.plist rename to Resources/CPUserDefaultsTest/Info.plist diff --git a/Resources/CPUserDefaultsTest/Jakefile b/Resources/CPUserDefaultsTest/Jakefile new file mode 100644 index 000000000..c64d38445 --- /dev/null +++ b/Resources/CPUserDefaultsTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * CPUserDefaultsTest + * + * Created by You on October 13, 2010. + * Copyright 2010, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPUserDefaultsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPUserDefaultsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPUserDefaultsTest"); + task.setIdentifier("com.yourcompany.CPUserDefaultsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPUserDefaultsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPUserDefaultsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPUserDefaultsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPUserDefaultsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPUserDefaultsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPUserDefaultsTest"), path.join("Build", "Deployment", "CPUserDefaultsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPUserDefaultsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPUserDefaultsTest"), path.join("Build", "Desktop", "CPUserDefaultsTest", "CPUserDefaultsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPUserDefaultsTest", "CPUserDefaultsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPUserDefaultsTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPUserDefaults/Resources/spinner.gif b/Resources/CPUserDefaultsTest/Resources/spinner.gif similarity index 100% rename from Resources/CPUserDefaults/Resources/spinner.gif rename to Resources/CPUserDefaultsTest/Resources/spinner.gif diff --git a/Resources/CPUserDefaults/index-debug.html b/Resources/CPUserDefaultsTest/index-debug.html similarity index 100% rename from Resources/CPUserDefaults/index-debug.html rename to Resources/CPUserDefaultsTest/index-debug.html diff --git a/Resources/CPUserDefaults/index.html b/Resources/CPUserDefaultsTest/index.html similarity index 100% rename from Resources/CPUserDefaults/index.html rename to Resources/CPUserDefaultsTest/index.html diff --git a/Resources/CPUserDefaults/main.j b/Resources/CPUserDefaultsTest/main.j similarity index 100% rename from Resources/CPUserDefaults/main.j rename to Resources/CPUserDefaultsTest/main.j diff --git a/Resources/CPUserNotificationTest/Jakefile b/Resources/CPUserNotificationTest/Jakefile index 92fd159c5..c41d83212 100644 --- a/Resources/CPUserNotificationTest/Jakefile +++ b/Resources/CPUserNotificationTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2015, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPUserNotificationTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPUserNotificationTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPUserNotificationTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPUserNotificationTest"); task.setIdentifier("com.yourcompany.CPUserNotificationTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPUserNotificationTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPUserNotificationTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPUserNotificationTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPUserNotificationTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPUserNotificationTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPViewController/AppController.j b/Resources/CPViewControllerTest/AppController.j similarity index 100% rename from Resources/CPViewController/AppController.j rename to Resources/CPViewControllerTest/AppController.j diff --git a/Resources/CPViewController/Info.plist b/Resources/CPViewControllerTest/Info.plist similarity index 100% rename from Resources/CPViewController/Info.plist rename to Resources/CPViewControllerTest/Info.plist diff --git a/Resources/CPViewController/Jakefile b/Resources/CPViewControllerTest/Jakefile similarity index 56% rename from Resources/CPViewController/Jakefile rename to Resources/CPViewControllerTest/Jakefile index 60f2becae..f9ad48a50 100644 --- a/Resources/CPViewController/Jakefile +++ b/Resources/CPViewControllerTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CPViewController + * CPViewControllerTest * * Created by You on November 11, 2015. * Copyright 2015, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CPViewController"; + projectName = "CPViewControllerTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPViewController.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPViewControllerTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CPViewController"); - task.setIdentifier("com.yourcompany.CPViewController"); + task.setProductName("CPViewControllerTest"); + task.setIdentifier("com.yourcompany.CPViewControllerTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CPViewController"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("CPViewControllerTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPViewController.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPViewControllerTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPViewController.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPViewControllerTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPViewController/Resources/MainMenu.cib b/Resources/CPViewControllerTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPViewController/Resources/MainMenu.cib rename to Resources/CPViewControllerTest/Resources/MainMenu.cib diff --git a/Resources/CPViewController/Resources/MainMenu.xib b/Resources/CPViewControllerTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPViewController/Resources/MainMenu.xib rename to Resources/CPViewControllerTest/Resources/MainMenu.xib diff --git a/Resources/CPViewController/Resources/ViewController.cib b/Resources/CPViewControllerTest/Resources/ViewController.cib similarity index 100% rename from Resources/CPViewController/Resources/ViewController.cib rename to Resources/CPViewControllerTest/Resources/ViewController.cib diff --git a/Resources/CPViewController/Resources/ViewController.xib b/Resources/CPViewControllerTest/Resources/ViewController.xib similarity index 100% rename from Resources/CPViewController/Resources/ViewController.xib rename to Resources/CPViewControllerTest/Resources/ViewController.xib diff --git a/Resources/CPViewController/Resources/ViewController2.cib b/Resources/CPViewControllerTest/Resources/ViewController2.cib similarity index 100% rename from Resources/CPViewController/Resources/ViewController2.cib rename to Resources/CPViewControllerTest/Resources/ViewController2.cib diff --git a/Resources/CPViewController/Resources/ViewController2.xib b/Resources/CPViewControllerTest/Resources/ViewController2.xib similarity index 100% rename from Resources/CPViewController/Resources/ViewController2.xib rename to Resources/CPViewControllerTest/Resources/ViewController2.xib diff --git a/Resources/CPViewController/index-debug.html b/Resources/CPViewControllerTest/index-debug.html similarity index 100% rename from Resources/CPViewController/index-debug.html rename to Resources/CPViewControllerTest/index-debug.html diff --git a/Resources/CPViewController/index.html b/Resources/CPViewControllerTest/index.html similarity index 100% rename from Resources/CPViewController/index.html rename to Resources/CPViewControllerTest/index.html diff --git a/Resources/CPViewController/main.j b/Resources/CPViewControllerTest/main.j similarity index 100% rename from Resources/CPViewController/main.j rename to Resources/CPViewControllerTest/main.j diff --git a/Resources/CPVisualEffectViewTest/Jakefile b/Resources/CPVisualEffectViewTest/Jakefile index 690674428..8f824430b 100644 --- a/Resources/CPVisualEffectViewTest/Jakefile +++ b/Resources/CPVisualEffectViewTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2015, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPVisualEffectViewTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPVisualEffectViewTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPVisualEffectViewTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPVisualEffectViewTest"); task.setIdentifier("com.yourcompany.CPVisualEffectViewTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPVisualEffectViewTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CPVisualEffectViewTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CPVisualEffectViewTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CPVisualEffectViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CPVisualEffectViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPWebViewTest/Jakefile b/Resources/CPWebViewTest/Jakefile index f4365f04e..189829470 100644 --- a/Resources/CPWebViewTest/Jakefile +++ b/Resources/CPWebViewTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Alexander Ljungberg All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPWebViewTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPWebViewTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPWebViewTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPWebViewTest"); task.setIdentifier("com.yourcompany.CPWebViewTest"); @@ -26,7 +26,7 @@ app ("CPWebViewTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPWebViewTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPWebViewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPWebViewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPWebViewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPWebViewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPWebViewTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPWebViewTest"), FILE.join("Build", "Deployment", "CPWebViewTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPWebViewTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPWebViewTest"), path.join("Build", "Deployment", "CPWebViewTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPWebViewTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPWebViewTest"), FILE.join("Build", "Desktop", "CPWebViewTest", "CPWebViewTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPWebViewTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPWebViewTest"), path.join("Build", "Desktop", "CPWebViewTest", "CPWebViewTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPWebViewTest", "CPWebViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPWebViewTest", "CPWebViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPWebViewTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPWebViewTest")); + console.log("----------------------------"); } diff --git a/Resources/CPWebViewTest2/Jakefile b/Resources/CPWebViewTest2/Jakefile index 4dcc5a105..f1aa39144 100644 --- a/Resources/CPWebViewTest2/Jakefile +++ b/Resources/CPWebViewTest2/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, WireLoad All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPWebViewTest2", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPWebViewTest2.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPWebViewTest2.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPWebViewTest2"); task.setIdentifier("com.yourcompany.CPWebViewTest2"); @@ -26,7 +26,7 @@ app ("CPWebViewTest2", function(task) task.setAuthor("WireLoad"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPWebViewTest2"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPWebViewTest2", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPWebViewTest2", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPWebViewTest2", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPWebViewTest2", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPWebViewTest2")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPWebViewTest2"), FILE.join("Build", "Deployment", "CPWebViewTest2")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPWebViewTest2"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPWebViewTest2"), path.join("Build", "Deployment", "CPWebViewTest2")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPWebViewTest2")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPWebViewTest2"), FILE.join("Build", "Desktop", "CPWebViewTest2", "CPWebViewTest2.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPWebViewTest2"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPWebViewTest2"), path.join("Build", "Desktop", "CPWebViewTest2", "CPWebViewTest2.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPWebViewTest2", "CPWebViewTest2.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPWebViewTest2", "CPWebViewTest2.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPWebViewTest2")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPWebViewTest2")); + console.log("----------------------------"); } diff --git a/Resources/CPWindowLiveResizeTest/Jakefile b/Resources/CPWindowLiveResizeTest/Jakefile index c21b42e5f..a2c973d86 100644 --- a/Resources/CPWindowLiveResizeTest/Jakefile +++ b/Resources/CPWindowLiveResizeTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2017, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CPWindowLiveResizeTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CPWindowLiveResizeTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPWindowLiveResizeTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPWindowLiveResizeTest"); task.setIdentifier("com.yourcompany.CPWindowLiveResizeTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPWindowLiveResizeTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/CPWindowMovableTest/Jakefile b/Resources/CPWindowMovableTest/Jakefile index 8ca955d00..101075c91 100644 --- a/Resources/CPWindowMovableTest/Jakefile +++ b/Resources/CPWindowMovableTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPWindowMovableTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPWindowMovableTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPWindowMovableTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPWindowMovableTest"); task.setIdentifier("com.yourcompany.CPWindowMovableTest"); @@ -26,7 +26,7 @@ app ("CPWindowMovableTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPWindowMovableTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPWindowMovableTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPWindowMovableTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPWindowMovableTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPWindowMovableTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPWindowMovableTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPWindowMovableTest"), FILE.join("Build", "Deployment", "CPWindowMovableTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPWindowMovableTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPWindowMovableTest"), path.join("Build", "Deployment", "CPWindowMovableTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPWindowMovableTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPWindowMovableTest"), FILE.join("Build", "Desktop", "CPWindowMovableTest", "CPWindowMovableTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPWindowMovableTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPWindowMovableTest"), path.join("Build", "Desktop", "CPWindowMovableTest", "CPWindowMovableTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPWindowMovableTest", "CPWindowMovableTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPWindowMovableTest", "CPWindowMovableTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPWindowMovableTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPWindowMovableTest")); + console.log("----------------------------"); } diff --git a/Resources/CPWindowResizeStyle/Jakefile b/Resources/CPWindowResizeStyle/Jakefile deleted file mode 100644 index d6db79e43..000000000 --- a/Resources/CPWindowResizeStyle/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * resize - * - * Created by You on December 24, 2012. - * Copyright 2012, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("resize", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "resize.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("resize"); - task.setIdentifier("com.yourcompany.resize"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("resize"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["resize"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "resize", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "resize", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "resize")); - OS.system(["press", "-f", FILE.join("Build", "Release", "resize"), FILE.join("Build", "Deployment", "resize")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "resize")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "resize"), FILE.join("Build", "Desktop", "resize", "resize.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "resize", "resize.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "resize")); - print("----------------------------"); -} diff --git a/Resources/CPWindowResizeStyle/AppController.j b/Resources/CPWindowResizeStyleTest/AppController.j similarity index 100% rename from Resources/CPWindowResizeStyle/AppController.j rename to Resources/CPWindowResizeStyleTest/AppController.j diff --git a/Resources/CPWindowResizeStyle/Info.plist b/Resources/CPWindowResizeStyleTest/Info.plist similarity index 100% rename from Resources/CPWindowResizeStyle/Info.plist rename to Resources/CPWindowResizeStyleTest/Info.plist diff --git a/Resources/CPWindowResizeStyleTest/Jakefile b/Resources/CPWindowResizeStyleTest/Jakefile new file mode 100644 index 000000000..ba2c8a2a9 --- /dev/null +++ b/Resources/CPWindowResizeStyleTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * CPWindowResizeStyleTest + * + * Created by You on December 24, 2012. + * Copyright 2012, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CPWindowResizeStyleTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "CPWindowResizeStyleTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CPWindowResizeStyleTest"); + task.setIdentifier("com.yourcompany.CPWindowResizeStyleTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CPWindowResizeStyleTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CPWindowResizeStyleTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CPWindowResizeStyleTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CPWindowResizeStyleTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CPWindowResizeStyleTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPWindowResizeStyleTest"), path.join("Build", "Deployment", "CPWindowResizeStyleTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CPWindowResizeStyleTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPWindowResizeStyleTest"), path.join("Build", "Desktop", "CPWindowResizeStyleTest", "CPWindowResizeStyleTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CPWindowResizeStyleTest", "CPWindowResizeStyleTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPWindowResizeStyleTest")); + console.log("----------------------------"); +} diff --git a/Resources/CPWindowResizeStyle/Resources/MainMenu.cib b/Resources/CPWindowResizeStyleTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CPWindowResizeStyle/Resources/MainMenu.cib rename to Resources/CPWindowResizeStyleTest/Resources/MainMenu.cib diff --git a/Resources/CPWindowResizeStyle/Resources/MainMenu.xib b/Resources/CPWindowResizeStyleTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CPWindowResizeStyle/Resources/MainMenu.xib rename to Resources/CPWindowResizeStyleTest/Resources/MainMenu.xib diff --git a/Resources/CPWindowResizeStyle/Resources/spinner.gif b/Resources/CPWindowResizeStyleTest/Resources/spinner.gif similarity index 100% rename from Resources/CPWindowResizeStyle/Resources/spinner.gif rename to Resources/CPWindowResizeStyleTest/Resources/spinner.gif diff --git a/Resources/CPWindowResizeStyle/index-debug.html b/Resources/CPWindowResizeStyleTest/index-debug.html similarity index 100% rename from Resources/CPWindowResizeStyle/index-debug.html rename to Resources/CPWindowResizeStyleTest/index-debug.html diff --git a/Resources/CPWindowResizeStyle/index.html b/Resources/CPWindowResizeStyleTest/index.html similarity index 100% rename from Resources/CPWindowResizeStyle/index.html rename to Resources/CPWindowResizeStyleTest/index.html diff --git a/Resources/CPWindowResizeStyle/main.j b/Resources/CPWindowResizeStyleTest/main.j similarity index 100% rename from Resources/CPWindowResizeStyle/main.j rename to Resources/CPWindowResizeStyleTest/main.j diff --git a/Resources/ChildWindows/ChildWindows.xcodeproj/project.pbxproj b/Resources/ChildWindows/ChildWindows.xcodeproj/project.pbxproj deleted file mode 100644 index d5d7a4e7d..000000000 --- a/Resources/ChildWindows/ChildWindows.xcodeproj/project.pbxproj +++ /dev/null @@ -1,500 +0,0 @@ - - - - - archiveVersion - 1 - classes - - objectVersion - 46 - objects - - 0AF74EFC9A920DFF170E38ED - - children - - FDAB46DEBA3FCECEBACF597D - 4D954F6889E4AF7ECD2955EE - 911D41BBBEC5022E7FE88960 - - isa - PBXGroup - name - Classes - sourceTree - <group> - - 4D954F6889E4AF7ECD2955EE - - isa - PBXFileReference - lastKnownFileType - sourcecode.c.h - name - _Users_aparajita_Development_Projects_Clients_SlevenBits_cappuccino_Tests_Manual_ChildWindows_AppController.h - path - .XcodeSupport/_Users_aparajita_Development_Projects_Clients_SlevenBits_cappuccino_Tests_Manual_ChildWindows_AppController.h - sourceTree - SOURCE_ROOT - - 6949447C9F5AEB0551AC5495 - - isa - PBXFileReference - lastKnownFileType - ? - name - AppController.j - path - AppController.j - sourceTree - SOURCE_ROOT - - 911D41BBBEC5022E7FE88960 - - isa - PBXFileReference - lastKnownFileType - sourcecode.c.objc - name - _Users_aparajita_Development_Projects_Clients_SlevenBits_cappuccino_Tests_Manual_ChildWindows_AppController.m - path - .XcodeSupport/_Users_aparajita_Development_Projects_Clients_SlevenBits_cappuccino_Tests_Manual_ChildWindows_AppController.m - sourceTree - SOURCE_ROOT - - 94AA4B948739AA205B2E5434 - - fileRef - 911D41BBBEC5022E7FE88960 - isa - PBXBuildFile - - 9EEC4488135749D200615446 - - children - - 9EEC44CB13574A0B00615446 - 9EEC4496135749D200615446 - 0AF74EFC9A920DFF170E38ED - BD4D45AF8334AF37B29B9174 - - isa - PBXGroup - sourceTree - <group> - - 9EEC448A135749D200615446 - - attributes - - LastUpgradeCheck - 0440 - ORGANIZATIONNAME - 280 North, Inc. - - buildConfigurationList - 9EEC448D135749D200615446 - compatibilityVersion - Xcode 3.2 - developmentRegion - English - hasScannedForEncodings - 0 - isa - PBXProject - knownRegions - - en - - mainGroup - 9EEC4488135749D200615446 - productRefGroup - 9EEC4494135749D200615446 - projectDirPath - - projectRoot - - targets - - 9EEC4492135749D200615446 - - - 9EEC448D135749D200615446 - - buildConfigurations - - 9EEC44C3135749D300615446 - 9EEC44C4135749D300615446 - - defaultConfigurationIsVisible - 0 - defaultConfigurationName - Release - isa - XCConfigurationList - - 9EEC448F135749D200615446 - - buildActionMask - 2147483647 - files - - 94AA4B948739AA205B2E5434 - - isa - PBXSourcesBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 9EEC4490135749D200615446 - - buildActionMask - 2147483647 - files - - 9EEC4498135749D200615446 - - isa - PBXFrameworksBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 9EEC4491135749D200615446 - - buildActionMask - 2147483647 - files - - 9EEC44CC13574A0B00615446 - - isa - PBXResourcesBuildPhase - runOnlyForDeploymentPostprocessing - 0 - - 9EEC4492135749D200615446 - - buildConfigurationList - 9EEC44C5135749D300615446 - buildPhases - - 9EEC448F135749D200615446 - 9EEC4490135749D200615446 - 9EEC4491135749D200615446 - - buildRules - - dependencies - - isa - PBXNativeTarget - name - Another - productName - Another - productReference - 9EEC4493135749D200615446 - productType - com.apple.product-type.application - - 9EEC4493135749D200615446 - - explicitFileType - wrapper.application - includeInIndex - 0 - isa - PBXFileReference - path - Another.app - sourceTree - BUILT_PRODUCTS_DIR - - 9EEC4494135749D200615446 - - children - - 9EEC4493135749D200615446 - - isa - PBXGroup - name - Products - sourceTree - <group> - - 9EEC4496135749D200615446 - - children - - 9EEC4497135749D200615446 - 9EEC4499135749D300615446 - - isa - PBXGroup - name - Frameworks - sourceTree - <group> - - 9EEC4497135749D200615446 - - isa - PBXFileReference - lastKnownFileType - wrapper.framework - name - Cocoa.framework - path - System/Library/Frameworks/Cocoa.framework - sourceTree - SDKROOT - - 9EEC4498135749D200615446 - - fileRef - 9EEC4497135749D200615446 - isa - PBXBuildFile - - 9EEC4499135749D300615446 - - children - - 9EEC449A135749D300615446 - 9EEC449B135749D300615446 - 9EEC449C135749D300615446 - - isa - PBXGroup - name - Other Frameworks - sourceTree - <group> - - 9EEC449A135749D300615446 - - isa - PBXFileReference - lastKnownFileType - wrapper.framework - name - AppKit.framework - path - System/Library/Frameworks/AppKit.framework - sourceTree - SDKROOT - - 9EEC449B135749D300615446 - - isa - PBXFileReference - lastKnownFileType - wrapper.framework - name - CoreData.framework - path - System/Library/Frameworks/CoreData.framework - sourceTree - SDKROOT - - 9EEC449C135749D300615446 - - isa - PBXFileReference - lastKnownFileType - wrapper.framework - name - Foundation.framework - path - System/Library/Frameworks/Foundation.framework - sourceTree - SDKROOT - - 9EEC44C3135749D300615446 - - buildSettings - - ARCHS - $(ARCHS_STANDARD_32_64_BIT) - GCC_C_LANGUAGE_STANDARD - gnu99 - GCC_OPTIMIZATION_LEVEL - 0 - GCC_PREPROCESSOR_DEFINITIONS - DEBUG - GCC_SYMBOLS_PRIVATE_EXTERN - NO - GCC_VERSION - com.apple.compilers.llvm.clang.1_0 - GCC_WARN_64_TO_32_BIT_CONVERSION - YES - GCC_WARN_ABOUT_RETURN_TYPE - YES - GCC_WARN_UNUSED_VARIABLE - YES - MACOSX_DEPLOYMENT_TARGET - 10.6 - ONLY_ACTIVE_ARCH - YES - SDKROOT - macosx - - isa - XCBuildConfiguration - name - Debug - - 9EEC44C4135749D300615446 - - buildSettings - - ARCHS - $(ARCHS_STANDARD_32_64_BIT) - GCC_C_LANGUAGE_STANDARD - gnu99 - GCC_VERSION - com.apple.compilers.llvm.clang.1_0 - GCC_WARN_64_TO_32_BIT_CONVERSION - YES - GCC_WARN_ABOUT_RETURN_TYPE - YES - GCC_WARN_UNUSED_VARIABLE - YES - MACOSX_DEPLOYMENT_TARGET - 10.6 - SDKROOT - macosx - - isa - XCBuildConfiguration - name - Release - - 9EEC44C5135749D300615446 - - buildConfigurations - - 9EEC44C6135749D300615446 - 9EEC44C7135749D300615446 - - defaultConfigurationIsVisible - 0 - defaultConfigurationName - Release - isa - XCConfigurationList - - 9EEC44C6135749D300615446 - - buildSettings - - ALWAYS_SEARCH_USER_PATHS - NO - COMBINE_HIDPI_IMAGES - YES - COPY_PHASE_STRIP - NO - GCC_DYNAMIC_NO_PIC - NO - GCC_ENABLE_OBJC_EXCEPTIONS - YES - GCC_PRECOMPILE_PREFIX_HEADER - YES - GCC_PREFIX_HEADER - Another/Another-Prefix.pch - INFOPLIST_FILE - Another/Another-Info.plist - PRODUCT_NAME - $(TARGET_NAME) - WRAPPER_EXTENSION - app - - isa - XCBuildConfiguration - name - Debug - - 9EEC44C7135749D300615446 - - buildSettings - - ALWAYS_SEARCH_USER_PATHS - NO - COMBINE_HIDPI_IMAGES - YES - COPY_PHASE_STRIP - YES - DEBUG_INFORMATION_FORMAT - dwarf-with-dsym - GCC_ENABLE_OBJC_EXCEPTIONS - YES - GCC_PRECOMPILE_PREFIX_HEADER - YES - GCC_PREFIX_HEADER - Another/Another-Prefix.pch - INFOPLIST_FILE - Another/Another-Info.plist - PRODUCT_NAME - $(TARGET_NAME) - WRAPPER_EXTENSION - app - - isa - XCBuildConfiguration - name - Release - - 9EEC44CB13574A0B00615446 - - isa - PBXFileReference - lastKnownFileType - folder - name - CappuccinoResources - path - Resources - sourceTree - <group> - - 9EEC44CC13574A0B00615446 - - fileRef - 9EEC44CB13574A0B00615446 - isa - PBXBuildFile - - BD4D45AF8334AF37B29B9174 - - children - - 6949447C9F5AEB0551AC5495 - - isa - PBXGroup - name - Sources - sourceTree - <group> - - FDAB46DEBA3FCECEBACF597D - - isa - PBXFileReference - lastKnownFileType - sourcecode.c.h - name - xcc_general_include.h - path - .XcodeSupport/xcc_general_include.h - sourceTree - SOURCE_ROOT - - - rootObject - 9EEC448A135749D200615446 - - diff --git a/Resources/ChildWindows/ChildWindows.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Resources/ChildWindows/ChildWindows.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 6de0920af..000000000 --- a/Resources/ChildWindows/ChildWindows.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Resources/ChildWindows/Jakefile b/Resources/ChildWindows/Jakefile deleted file mode 100644 index 91e834bb8..000000000 --- a/Resources/ChildWindows/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * ChildWindows - * - * Created by You on January 17, 2013. - * Copyright 2013, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("ChildWindows", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "ChildWindows.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("ChildWindows"); - task.setIdentifier("com.yourcompany.ChildWindows"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("ChildWindows"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["ChildWindows"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "ChildWindows", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "ChildWindows", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "ChildWindows")); - OS.system(["press", "-f", FILE.join("Build", "Release", "ChildWindows"), FILE.join("Build", "Deployment", "ChildWindows")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "ChildWindows")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "ChildWindows"), FILE.join("Build", "Desktop", "ChildWindows", "ChildWindows.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "ChildWindows", "ChildWindows.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "ChildWindows")); - print("----------------------------"); -} diff --git a/Resources/ChildWindows/AppController.j b/Resources/ChildWindowsTest/AppController.j similarity index 100% rename from Resources/ChildWindows/AppController.j rename to Resources/ChildWindowsTest/AppController.j diff --git a/Resources/ChildWindows/Info.plist b/Resources/ChildWindowsTest/Info.plist similarity index 100% rename from Resources/ChildWindows/Info.plist rename to Resources/ChildWindowsTest/Info.plist diff --git a/Resources/ChildWindowsTest/Jakefile b/Resources/ChildWindowsTest/Jakefile new file mode 100644 index 000000000..ec43e58f9 --- /dev/null +++ b/Resources/ChildWindowsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * ChildWindowsTest + * + * Created by You on January 17, 2013. + * Copyright 2013, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("ChildWindowsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "ChildWindowsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("ChildWindowsTest"); + task.setIdentifier("com.yourcompany.ChildWindowsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("ChildWindowsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["ChildWindowsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "ChildWindowsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "ChildWindowsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "ChildWindowsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "ChildWindowsTest"), path.join("Build", "Deployment", "ChildWindowsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "ChildWindowsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "ChildWindowsTest"), path.join("Build", "Desktop", "ChildWindowsTest", "ChildWindowsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "ChildWindowsTest", "ChildWindowsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "ChildWindowsTest")); + console.log("----------------------------"); +} diff --git a/Resources/ChildWindows/Resources/MainMenu.cib b/Resources/ChildWindowsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/ChildWindows/Resources/MainMenu.cib rename to Resources/ChildWindowsTest/Resources/MainMenu.cib diff --git a/Resources/ChildWindows/Resources/MainMenu.xib b/Resources/ChildWindowsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/ChildWindows/Resources/MainMenu.xib rename to Resources/ChildWindowsTest/Resources/MainMenu.xib diff --git a/Resources/ChildWindows/Resources/spinner.gif b/Resources/ChildWindowsTest/Resources/spinner.gif similarity index 100% rename from Resources/ChildWindows/Resources/spinner.gif rename to Resources/ChildWindowsTest/Resources/spinner.gif diff --git a/Resources/ChildWindows/index-debug.html b/Resources/ChildWindowsTest/index-debug.html similarity index 100% rename from Resources/ChildWindows/index-debug.html rename to Resources/ChildWindowsTest/index-debug.html diff --git a/Resources/ChildWindows/index.html b/Resources/ChildWindowsTest/index.html similarity index 100% rename from Resources/ChildWindows/index.html rename to Resources/ChildWindowsTest/index.html diff --git a/Resources/ChildWindows/main.j b/Resources/ChildWindowsTest/main.j similarity index 100% rename from Resources/ChildWindows/main.j rename to Resources/ChildWindowsTest/main.j diff --git a/Resources/ContinuouslyUpdatesValueBinding/Jakefile b/Resources/ContinuouslyUpdatesValueBinding/Jakefile index 941b9a92a..07b5f704b 100644 --- a/Resources/ContinuouslyUpdatesValueBinding/Jakefile +++ b/Resources/ContinuouslyUpdatesValueBinding/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, WireLoad All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("BindingContiniouslyUpdatesValue", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "BindingContiniouslyUpdatesValue.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "BindingContiniouslyUpdatesValue.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("BindingContiniouslyUpdatesValue"); task.setIdentifier("com.yourcompany.BindingContiniouslyUpdatesValue"); @@ -26,7 +26,7 @@ app ("BindingContiniouslyUpdatesValue", function(task) task.setAuthor("WireLoad"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("BindingContiniouslyUpdatesValue"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "BindingContiniouslyUpdatesValue", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "BindingContiniouslyUpdatesValue", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "BindingContiniouslyUpdatesValue", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "BindingContiniouslyUpdatesValue", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "BindingContiniouslyUpdatesValue")); - OS.system(["press", "-f", FILE.join("Build", "Release", "BindingContiniouslyUpdatesValue"), FILE.join("Build", "Deployment", "BindingContiniouslyUpdatesValue")]); + fs.mkdirSync(path.join("Build", "Deployment", "BindingContiniouslyUpdatesValue"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "BindingContiniouslyUpdatesValue"), path.join("Build", "Deployment", "BindingContiniouslyUpdatesValue")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "BindingContiniouslyUpdatesValue")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "BindingContiniouslyUpdatesValue"), FILE.join("Build", "Desktop", "BindingContiniouslyUpdatesValue", "BindingContiniouslyUpdatesValue.app")); + fs.mkdirSync(path.join("Build", "Desktop", "BindingContiniouslyUpdatesValue"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "BindingContiniouslyUpdatesValue"), path.join("Build", "Desktop", "BindingContiniouslyUpdatesValue", "BindingContiniouslyUpdatesValue.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "BindingContiniouslyUpdatesValue", "BindingContiniouslyUpdatesValue.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "BindingContiniouslyUpdatesValue", "BindingContiniouslyUpdatesValue.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "BindingContiniouslyUpdatesValue")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "BindingContiniouslyUpdatesValue")); + console.log("----------------------------"); } diff --git a/Resources/CopyAndPaste/Jakefile b/Resources/CopyAndPaste/Jakefile deleted file mode 100644 index 5a58beae2..000000000 --- a/Resources/CopyAndPaste/Jakefile +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Jakefile - * CopyAndPaste - * - * Created by Alexander Ljungberg on June 13, 2013. - * Copyright 2013, SlevenBits, Ltd. All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("CopyAndPaste", function(task) -{ - ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; - - if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - - task.setBuildIntermediatesPath(FILE.join("Build", "CopyAndPaste.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("CopyAndPaste"); - task.setIdentifier("com.yourcompany.CopyAndPaste"); - task.setVersion("1.0"); - task.setAuthor("SlevenBits, Ltd."); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CopyAndPaste"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["CopyAndPaste"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "CopyAndPaste", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "CopyAndPaste", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "CopyAndPaste")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CopyAndPaste"), FILE.join("Build", "Deployment", "CopyAndPaste")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "CopyAndPaste")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CopyAndPaste"), FILE.join("Build", "Desktop", "CopyAndPaste", "CopyAndPaste.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "CopyAndPaste", "CopyAndPaste.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CopyAndPaste")); - print("----------------------------"); -} diff --git a/Resources/CopyAndPaste/AppController.j b/Resources/CopyAndPasteTest/AppController.j similarity index 100% rename from Resources/CopyAndPaste/AppController.j rename to Resources/CopyAndPasteTest/AppController.j diff --git a/Resources/CopyAndPaste/CollectionViewItem.j b/Resources/CopyAndPasteTest/CollectionViewItem.j similarity index 100% rename from Resources/CopyAndPaste/CollectionViewItem.j rename to Resources/CopyAndPasteTest/CollectionViewItem.j diff --git a/Resources/CopyAndPaste/Info.plist b/Resources/CopyAndPasteTest/Info.plist similarity index 100% rename from Resources/CopyAndPaste/Info.plist rename to Resources/CopyAndPasteTest/Info.plist diff --git a/Resources/CopyAndPasteTest/Jakefile b/Resources/CopyAndPasteTest/Jakefile new file mode 100644 index 000000000..52ef6d1eb --- /dev/null +++ b/Resources/CopyAndPasteTest/Jakefile @@ -0,0 +1,98 @@ +/* + * Jakefile + * CopyAndPasteTest + * + * Created by Alexander Ljungberg on June 13, 2013. + * Copyright 2013, SlevenBits, Ltd. All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("CopyAndPasteTest", function(task) +{ + ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; + + if (configuration === "Debug") + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + + task.setBuildIntermediatesPath(path.join("Build", "CopyAndPasteTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("CopyAndPasteTest"); + task.setIdentifier("com.yourcompany.CopyAndPasteTest"); + task.setVersion("1.0"); + task.setAuthor("SlevenBits, Ltd."); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("CopyAndPasteTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["CopyAndPasteTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "CopyAndPasteTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "CopyAndPasteTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "CopyAndPasteTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CopyAndPasteTest"), path.join("Build", "Deployment", "CopyAndPasteTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "CopyAndPasteTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CopyAndPasteTest"), path.join("Build", "Desktop", "CopyAndPasteTest", "CopyAndPasteTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "CopyAndPasteTest", "CopyAndPasteTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CopyAndPasteTest")); + console.log("----------------------------"); +} diff --git a/Resources/CopyAndPaste/Resources/2952609526_9fd245dfcd_q.jpg b/Resources/CopyAndPasteTest/Resources/2952609526_9fd245dfcd_q.jpg similarity index 100% rename from Resources/CopyAndPaste/Resources/2952609526_9fd245dfcd_q.jpg rename to Resources/CopyAndPasteTest/Resources/2952609526_9fd245dfcd_q.jpg diff --git a/Resources/CopyAndPaste/Resources/MainMenu.cib b/Resources/CopyAndPasteTest/Resources/MainMenu.cib similarity index 100% rename from Resources/CopyAndPaste/Resources/MainMenu.cib rename to Resources/CopyAndPasteTest/Resources/MainMenu.cib diff --git a/Resources/CopyAndPaste/Resources/MainMenu.xib b/Resources/CopyAndPasteTest/Resources/MainMenu.xib similarity index 100% rename from Resources/CopyAndPaste/Resources/MainMenu.xib rename to Resources/CopyAndPasteTest/Resources/MainMenu.xib diff --git a/Resources/CopyAndPaste/Resources/spinner.gif b/Resources/CopyAndPasteTest/Resources/spinner.gif similarity index 100% rename from Resources/CopyAndPaste/Resources/spinner.gif rename to Resources/CopyAndPasteTest/Resources/spinner.gif diff --git a/Resources/CopyAndPaste/index-debug.html b/Resources/CopyAndPasteTest/index-debug.html similarity index 100% rename from Resources/CopyAndPaste/index-debug.html rename to Resources/CopyAndPasteTest/index-debug.html diff --git a/Resources/CopyAndPaste/index.html b/Resources/CopyAndPasteTest/index.html similarity index 100% rename from Resources/CopyAndPaste/index.html rename to Resources/CopyAndPasteTest/index.html diff --git a/Resources/CopyAndPaste/main.j b/Resources/CopyAndPasteTest/main.j similarity index 100% rename from Resources/CopyAndPaste/main.j rename to Resources/CopyAndPasteTest/main.j diff --git a/Resources/CrossOriginTest/Jakefile b/Resources/CrossOriginTest/Jakefile index 6a448e9b0..61337f05f 100644 --- a/Resources/CrossOriginTest/Jakefile +++ b/Resources/CrossOriginTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2014, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "CrossOriginTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CrossOriginTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CrossOriginTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CrossOriginTest"); task.setIdentifier("com.yourcompany.CrossOriginTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CrossOriginTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "CrossOriginTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "CrossOriginTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "CrossOriginTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "CrossOriginTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/FF4096Test/Jakefile b/Resources/FF4096Test/Jakefile index c5c8bd8d1..ff9d239c5 100755 --- a/Resources/FF4096Test/Jakefile +++ b/Resources/FF4096Test/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, BBDO All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("FFTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "FFTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "FFTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("FFTest"); task.setIdentifier("com.yourcompany.FFTest"); @@ -26,7 +26,7 @@ app ("FFTest", function(task) task.setAuthor("BBDO"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("FFTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "FFTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "FFTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "FFTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "FFTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "FFTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "FFTest"), FILE.join("Build", "Deployment", "FFTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "FFTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "FFTest"), path.join("Build", "Deployment", "FFTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "FFTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "FFTest"), FILE.join("Build", "Desktop", "FFTest", "FFTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "FFTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "FFTest"), path.join("Build", "Desktop", "FFTest", "FFTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "FFTest", "FFTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "FFTest", "FFTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "FFTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "FFTest")); + console.log("----------------------------"); } diff --git a/Resources/FontEnhancementTest/Jakefile b/Resources/FontEnhancementTest/Jakefile index cdafe78a4..e9d819ef5 100644 --- a/Resources/FontEnhancementTest/Jakefile +++ b/Resources/FontEnhancementTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("test", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "test.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("test"); task.setIdentifier("com.aparajitaworld.test"); @@ -26,7 +26,7 @@ app ("test", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("test"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "test")); - OS.system(["press", "-f", FILE.join("Build", "Release", "test"), FILE.join("Build", "Deployment", "test")]); + fs.mkdirSync(path.join("Build", "Deployment", "test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "test"), path.join("Build", "Deployment", "test")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "test")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "test"), FILE.join("Build", "Desktop", "test", "test.app")); + fs.mkdirSync(path.join("Build", "Desktop", "test"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "test"), path.join("Build", "Desktop", "test", "test.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "test")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "test")); + console.log("----------------------------"); } diff --git a/Resources/FontMetricsExplorer/AppController.j b/Resources/FontMetricsExplorerTest/AppController.j similarity index 100% rename from Resources/FontMetricsExplorer/AppController.j rename to Resources/FontMetricsExplorerTest/AppController.j diff --git a/Resources/FontMetricsExplorer/Info.plist b/Resources/FontMetricsExplorerTest/Info.plist similarity index 100% rename from Resources/FontMetricsExplorer/Info.plist rename to Resources/FontMetricsExplorerTest/Info.plist diff --git a/Resources/FontMetricsExplorer/Resources/MainMenu.cib b/Resources/FontMetricsExplorerTest/Resources/MainMenu.cib similarity index 100% rename from Resources/FontMetricsExplorer/Resources/MainMenu.cib rename to Resources/FontMetricsExplorerTest/Resources/MainMenu.cib diff --git a/Resources/FontMetricsExplorer/Resources/MainMenu.xib b/Resources/FontMetricsExplorerTest/Resources/MainMenu.xib similarity index 100% rename from Resources/FontMetricsExplorer/Resources/MainMenu.xib rename to Resources/FontMetricsExplorerTest/Resources/MainMenu.xib diff --git a/Resources/FontMetricsExplorer/Resources/spinner.gif b/Resources/FontMetricsExplorerTest/Resources/spinner.gif similarity index 100% rename from Resources/FontMetricsExplorer/Resources/spinner.gif rename to Resources/FontMetricsExplorerTest/Resources/spinner.gif diff --git a/Resources/FontMetricsExplorer/index-debug.html b/Resources/FontMetricsExplorerTest/index-debug.html similarity index 100% rename from Resources/FontMetricsExplorer/index-debug.html rename to Resources/FontMetricsExplorerTest/index-debug.html diff --git a/Resources/FontMetricsExplorer/index.html b/Resources/FontMetricsExplorerTest/index.html similarity index 100% rename from Resources/FontMetricsExplorer/index.html rename to Resources/FontMetricsExplorerTest/index.html diff --git a/Resources/FontMetricsExplorer/main.j b/Resources/FontMetricsExplorerTest/main.j similarity index 100% rename from Resources/FontMetricsExplorer/main.j rename to Resources/FontMetricsExplorerTest/main.j diff --git a/Resources/KeyEquivalents/Jakefile b/Resources/KeyEquivalents/Jakefile deleted file mode 100644 index 8fea6e453..000000000 --- a/Resources/KeyEquivalents/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * cappuccino-keyequivalents - * - * Created by Alexander Ljungberg on July 20, 2010. - * Copyright 2010, WireLoad, LLC All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("cappuccinoKeyequivalents", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "cappuccinoKeyequivalents.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("cappuccino-keyequivalents"); - task.setIdentifier("com.yourcompany.cappuccinoKeyequivalents"); - task.setVersion("1.0"); - task.setAuthor("WireLoad, LLC"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("cappuccino-keyequivalents"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["cappuccinoKeyequivalents"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "cappuccinoKeyequivalents", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "cappuccinoKeyequivalents", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "cappuccinoKeyequivalents")); - OS.system(["press", "-f", FILE.join("Build", "Release", "cappuccinoKeyequivalents"), FILE.join("Build", "Deployment", "cappuccinoKeyequivalents")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "cappuccinoKeyequivalents")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "cappuccinoKeyequivalents"), FILE.join("Build", "Desktop", "cappuccinoKeyequivalents", "cappuccinoKeyequivalents.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "cappuccinoKeyequivalents", "cappuccinoKeyequivalents.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "cappuccinoKeyequivalents")); - print("----------------------------"); -} diff --git a/Resources/KeyEquivalents/AppController.j b/Resources/KeyEquivalentsTest/AppController.j similarity index 100% rename from Resources/KeyEquivalents/AppController.j rename to Resources/KeyEquivalentsTest/AppController.j diff --git a/Resources/KeyEquivalents/Info.plist b/Resources/KeyEquivalentsTest/Info.plist similarity index 100% rename from Resources/KeyEquivalents/Info.plist rename to Resources/KeyEquivalentsTest/Info.plist diff --git a/Resources/KeyEquivalentsTest/Jakefile b/Resources/KeyEquivalentsTest/Jakefile new file mode 100644 index 000000000..f19178cad --- /dev/null +++ b/Resources/KeyEquivalentsTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * cappuccino-keyequivalents + * + * Created by Alexander Ljungberg on July 20, 2010. + * Copyright 2010, WireLoad, LLC All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("KeyEquivalentsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "KeyEquivalentsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("cappuccino-keyequivalents"); + task.setIdentifier("com.yourcompany.KeyEquivalentsTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad, LLC"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("cappuccino-keyequivalents"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["KeyEquivalentsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "KeyEquivalentsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "KeyEquivalentsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "KeyEquivalentsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "KeyEquivalentsTest"), path.join("Build", "Deployment", "KeyEquivalentsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "KeyEquivalentsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "KeyEquivalentsTest"), path.join("Build", "Desktop", "KeyEquivalentsTest", "KeyEquivalentsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "KeyEquivalentsTest", "KeyEquivalentsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "KeyEquivalentsTest")); + console.log("----------------------------"); +} diff --git a/Resources/KeyEquivalents/Resources/spinner.gif b/Resources/KeyEquivalentsTest/Resources/spinner.gif similarity index 100% rename from Resources/KeyEquivalents/Resources/spinner.gif rename to Resources/KeyEquivalentsTest/Resources/spinner.gif diff --git a/Resources/KeyEquivalents/index-debug.html b/Resources/KeyEquivalentsTest/index-debug.html similarity index 100% rename from Resources/KeyEquivalents/index-debug.html rename to Resources/KeyEquivalentsTest/index-debug.html diff --git a/Resources/KeyEquivalents/index.html b/Resources/KeyEquivalentsTest/index.html similarity index 100% rename from Resources/KeyEquivalents/index.html rename to Resources/KeyEquivalentsTest/index.html diff --git a/Resources/KeyEquivalents/main.j b/Resources/KeyEquivalentsTest/main.j similarity index 100% rename from Resources/KeyEquivalents/main.j rename to Resources/KeyEquivalentsTest/main.j diff --git a/Resources/KeyViewLoopTest/Jakefile b/Resources/KeyViewLoopTest/Jakefile index c5530d946..c2fb7bfb4 100644 --- a/Resources/KeyViewLoopTest/Jakefile +++ b/Resources/KeyViewLoopTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2013, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("panel", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "panel.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "panel.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("panel"); task.setIdentifier("com.yourcompany.panel"); @@ -26,7 +26,7 @@ app ("panel", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("panel"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "panel", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "panel", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "panel", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "panel", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "panel")); - OS.system(["press", "-f", FILE.join("Build", "Release", "panel"), FILE.join("Build", "Deployment", "panel")]); + fs.mkdirSync(path.join("Build", "Deployment", "panel"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "panel"), path.join("Build", "Deployment", "panel")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "panel")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "panel"), FILE.join("Build", "Desktop", "panel", "panel.app")); + fs.mkdirSync(path.join("Build", "Desktop", "panel"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "panel"), path.join("Build", "Desktop", "panel", "panel.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "panel", "panel.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "panel", "panel.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "panel")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "panel")); + console.log("----------------------------"); } diff --git a/Resources/KeyWindowInTheBackgroundActivation/Jakefile b/Resources/KeyWindowInTheBackgroundActivation/Jakefile index f158726dc..9abd1726b 100644 --- a/Resources/KeyWindowInTheBackgroundActivation/Jakefile +++ b/Resources/KeyWindowInTheBackgroundActivation/Jakefile @@ -6,12 +6,12 @@ * Copyright 2018, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "WindowFrontTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "WindowFrontTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "WindowFrontTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("WindowFrontTest"); task.setIdentifier("com.yourcompany.WindowFrontTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("WindowFrontTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/LayoutTest/Jakefile b/Resources/LayoutTest/Jakefile index 79642b37d..75a129e4a 100644 --- a/Resources/LayoutTest/Jakefile +++ b/Resources/LayoutTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, SlevenBits Ltd. All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("LayoutTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "LayoutTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "LayoutTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("LayoutTest"); task.setIdentifier("com.yourcompany.LayoutTest"); @@ -26,7 +26,7 @@ app ("LayoutTest", function(task) task.setAuthor("SlevenBits Ltd."); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("LayoutTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "LayoutTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "LayoutTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "LayoutTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "LayoutTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "LayoutTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "LayoutTest"), FILE.join("Build", "Deployment", "LayoutTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "LayoutTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "LayoutTest"), path.join("Build", "Deployment", "LayoutTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "LayoutTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "LayoutTest"), FILE.join("Build", "Desktop", "LayoutTest", "LayoutTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "LayoutTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "LayoutTest"), path.join("Build", "Desktop", "LayoutTest", "LayoutTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "LayoutTest", "LayoutTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "LayoutTest", "LayoutTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "LayoutTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "LayoutTest")); + console.log("----------------------------"); } diff --git a/Resources/loadDynamicFrameworks/AppController.j b/Resources/LoadDynamicFrameworksTest/AppController.j similarity index 100% rename from Resources/loadDynamicFrameworks/AppController.j rename to Resources/LoadDynamicFrameworksTest/AppController.j diff --git a/Resources/loadDynamicFrameworks/Info.plist b/Resources/LoadDynamicFrameworksTest/Info.plist similarity index 100% rename from Resources/loadDynamicFrameworks/Info.plist rename to Resources/LoadDynamicFrameworksTest/Info.plist diff --git a/Resources/LoadDynamicFrameworksTest/Jakefile b/Resources/LoadDynamicFrameworksTest/Jakefile new file mode 100644 index 000000000..7f86af87b --- /dev/null +++ b/Resources/LoadDynamicFrameworksTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * LoadDynamicFrameworksTest + * + * Created by Blair Duncan on February 23, 2013. + * Copyright 2013, SGL Studio, BBDO Toronto All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("LoadDynamicFrameworksTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "LoadDynamicFrameworksTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("LoadDynamicFrameworksTest"); + task.setIdentifier("com.yourcompany.LoadDynamicFrameworksTest"); + task.setVersion("1.0"); + task.setAuthor("SGL Studio, BBDO Toronto"); + task.setEmail("Blair.Duncan@BBDO.com"); + task.setSummary("LoadDynamicFrameworksTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["LoadDynamicFrameworksTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "LoadDynamicFrameworksTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "LoadDynamicFrameworksTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "LoadDynamicFrameworksTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "LoadDynamicFrameworksTest"), path.join("Build", "Deployment", "LoadDynamicFrameworksTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "LoadDynamicFrameworksTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "LoadDynamicFrameworksTest"), path.join("Build", "Desktop", "LoadDynamicFrameworksTest", "LoadDynamicFrameworksTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "LoadDynamicFrameworksTest", "LoadDynamicFrameworksTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "LoadDynamicFrameworksTest")); + console.log("----------------------------"); +} diff --git a/Resources/loadDynamicFrameworks/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular0.png b/Resources/LoadDynamicFrameworksTest/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular0.png similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular0.png rename to Resources/LoadDynamicFrameworksTest/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular0.png diff --git a/Resources/loadDynamicFrameworks/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular1.png b/Resources/LoadDynamicFrameworksTest/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular1.png similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular1.png rename to Resources/LoadDynamicFrameworksTest/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular1.png diff --git a/Resources/loadDynamicFrameworks/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular2.png b/Resources/LoadDynamicFrameworksTest/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular2.png similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular2.png rename to Resources/LoadDynamicFrameworksTest/Resources/CPProgressIndicator/CPProgressIndicatorBarBarRegular2.png diff --git a/Resources/loadDynamicFrameworks/Resources/LoginWindowBackground.png b/Resources/LoadDynamicFrameworksTest/Resources/LoginWindowBackground.png similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/LoginWindowBackground.png rename to Resources/LoadDynamicFrameworksTest/Resources/LoginWindowBackground.png diff --git a/Resources/loadDynamicFrameworks/Resources/MainMenu.cib b/Resources/LoadDynamicFrameworksTest/Resources/MainMenu.cib similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/MainMenu.cib rename to Resources/LoadDynamicFrameworksTest/Resources/MainMenu.cib diff --git a/Resources/loadDynamicFrameworks/Resources/MainMenu.xib b/Resources/LoadDynamicFrameworksTest/Resources/MainMenu.xib similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/MainMenu.xib rename to Resources/LoadDynamicFrameworksTest/Resources/MainMenu.xib diff --git a/Resources/loadDynamicFrameworks/Resources/ProgressBarBezel.png b/Resources/LoadDynamicFrameworksTest/Resources/ProgressBarBezel.png similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/ProgressBarBezel.png rename to Resources/LoadDynamicFrameworksTest/Resources/ProgressBarBezel.png diff --git a/Resources/loadDynamicFrameworks/Resources/StartButton.png b/Resources/LoadDynamicFrameworksTest/Resources/StartButton.png similarity index 100% rename from Resources/loadDynamicFrameworks/Resources/StartButton.png rename to Resources/LoadDynamicFrameworksTest/Resources/StartButton.png diff --git a/Resources/LongBindings/index-debug.html b/Resources/LoadDynamicFrameworksTest/index-debug.html similarity index 100% rename from Resources/LongBindings/index-debug.html rename to Resources/LoadDynamicFrameworksTest/index-debug.html diff --git a/Resources/LongBindings/index.html b/Resources/LoadDynamicFrameworksTest/index.html similarity index 100% rename from Resources/LongBindings/index.html rename to Resources/LoadDynamicFrameworksTest/index.html diff --git a/Resources/loadDynamicFrameworks/main.j b/Resources/LoadDynamicFrameworksTest/main.j similarity index 100% rename from Resources/loadDynamicFrameworks/main.j rename to Resources/LoadDynamicFrameworksTest/main.j diff --git a/Resources/LoadTimeTest/Jakefile b/Resources/LoadTimeTest/Jakefile index bcb3924ee..1b8ace188 100644 --- a/Resources/LoadTimeTest/Jakefile +++ b/Resources/LoadTimeTest/Jakefile @@ -6,17 +6,17 @@ * Copyright 2010, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), task = require("jake").task, FileList = require("jake").FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("LoadTimeTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "LoadTimeTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "LoadTimeTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("LoadTimeTest"); task.setIdentifier("com.yourcompany.LoadTimeTest"); diff --git a/Resources/LongBindings/Jakefile b/Resources/LongBindings/Jakefile deleted file mode 100644 index 2ecd1264a..000000000 --- a/Resources/LongBindings/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * bindings-bug - * - * Created by You on November 2, 2010. - * Copyright 2010, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("bindingsBug", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "bindingsBug.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("bindings-bug"); - task.setIdentifier("com.yourcompany.bindingsBug"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("bindings-bug"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["bindingsBug"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "bindingsBug", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "bindingsBug", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "bindingsBug")); - OS.system(["press", "-f", FILE.join("Build", "Release", "bindingsBug"), FILE.join("Build", "Deployment", "bindingsBug")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "bindingsBug")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "bindingsBug"), FILE.join("Build", "Desktop", "bindingsBug", "bindingsBug.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "bindingsBug", "bindingsBug.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "bindingsBug")); - print("----------------------------"); -} diff --git a/Resources/LongBindings/AppController.j b/Resources/LongBindingsTest/AppController.j similarity index 100% rename from Resources/LongBindings/AppController.j rename to Resources/LongBindingsTest/AppController.j diff --git a/Resources/LongBindings/Info.plist b/Resources/LongBindingsTest/Info.plist similarity index 100% rename from Resources/LongBindings/Info.plist rename to Resources/LongBindingsTest/Info.plist diff --git a/Resources/LongBindingsTest/Jakefile b/Resources/LongBindingsTest/Jakefile new file mode 100644 index 000000000..90a9a9515 --- /dev/null +++ b/Resources/LongBindingsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * LongBindingsTest + * + * Created by You on November 2, 2010. + * Copyright 2010, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("LongBindingsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "LongBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("bindings-bug"); + task.setIdentifier("com.yourcompany.LongBindingsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("bindings-bug"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["LongBindingsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "LongBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "LongBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "LongBindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "LongBindingsTest"), path.join("Build", "Deployment", "LongBindingsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "LongBindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "LongBindingsTest"), path.join("Build", "Desktop", "LongBindingsTest", "LongBindingsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "LongBindingsTest", "LongBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "LongBindingsTest")); + console.log("----------------------------"); +} diff --git a/Resources/LongBindings/Resources/MainMenu.cib b/Resources/LongBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/LongBindings/Resources/MainMenu.cib rename to Resources/LongBindingsTest/Resources/MainMenu.cib diff --git a/Resources/LongBindings/Resources/MainMenu.xib b/Resources/LongBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/LongBindings/Resources/MainMenu.xib rename to Resources/LongBindingsTest/Resources/MainMenu.xib diff --git a/Resources/LongBindings/Resources/spinner.gif b/Resources/LongBindingsTest/Resources/spinner.gif similarity index 100% rename from Resources/LongBindings/Resources/spinner.gif rename to Resources/LongBindingsTest/Resources/spinner.gif diff --git a/Resources/MultipleValueBindings/index-debug.html b/Resources/LongBindingsTest/index-debug.html similarity index 100% rename from Resources/MultipleValueBindings/index-debug.html rename to Resources/LongBindingsTest/index-debug.html diff --git a/Resources/MultipleValueBindings/index.html b/Resources/LongBindingsTest/index.html similarity index 100% rename from Resources/MultipleValueBindings/index.html rename to Resources/LongBindingsTest/index.html diff --git a/Resources/LongBindings/main.j b/Resources/LongBindingsTest/main.j similarity index 100% rename from Resources/LongBindings/main.j rename to Resources/LongBindingsTest/main.j diff --git a/Resources/MobileTest/Jakefile b/Resources/MobileTest/Jakefile index b40d57510..d6b6d188f 100644 --- a/Resources/MobileTest/Jakefile +++ b/Resources/MobileTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2016, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "MobileTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "MobileTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "MobileTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("MobileTest"); task.setIdentifier("com.yourcompany.MobileTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("MobileTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/MultipleValueBindings/Jakefile b/Resources/MultipleValueBindings/Jakefile deleted file mode 100644 index 8aa3aaa66..000000000 --- a/Resources/MultipleValueBindings/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * menu - * - * Created by You on January 31, 2013. - * Copyright 2013, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("menu", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "menu.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("menu"); - task.setIdentifier("com.yourcompany.menu"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("menu"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["menu"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "menu", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "menu", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "menu")); - OS.system(["press", "-f", FILE.join("Build", "Release", "menu"), FILE.join("Build", "Deployment", "menu")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "menu")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "menu"), FILE.join("Build", "Desktop", "menu", "menu.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "menu", "menu.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "menu")); - print("----------------------------"); -} diff --git a/Resources/MultipleValueBindings/AppController.j b/Resources/MultipleValueBindingsTest/AppController.j similarity index 100% rename from Resources/MultipleValueBindings/AppController.j rename to Resources/MultipleValueBindingsTest/AppController.j diff --git a/Resources/MultipleValueBindings/Info.plist b/Resources/MultipleValueBindingsTest/Info.plist similarity index 100% rename from Resources/MultipleValueBindings/Info.plist rename to Resources/MultipleValueBindingsTest/Info.plist diff --git a/Resources/MultipleValueBindingsTest/Jakefile b/Resources/MultipleValueBindingsTest/Jakefile new file mode 100644 index 000000000..b20304dda --- /dev/null +++ b/Resources/MultipleValueBindingsTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * MultipleValueBindingsTest + * + * Created by You on January 31, 2013. + * Copyright 2013, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("MultipleValueBindingsTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "MultipleValueBindingsTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("MultipleValueBindingsTest"); + task.setIdentifier("com.yourcompany.MultipleValueBindingsTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("MultipleValueBindingsTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["MultipleValueBindingsTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "MultipleValueBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "MultipleValueBindingsTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "MultipleValueBindingsTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "MultipleValueBindingsTest"), path.join("Build", "Deployment", "MultipleValueBindingsTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "MultipleValueBindingsTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "MultipleValueBindingsTest"), path.join("Build", "Desktop", "MultipleValueBindingsTest", "MultipleValueBindingsTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "MultipleValueBindingsTest", "MultipleValueBindingsTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "MultipleValueBindingsTest")); + console.log("----------------------------"); +} diff --git a/Resources/MultipleValueBindings/Resources/MainMenu.cib b/Resources/MultipleValueBindingsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/MultipleValueBindings/Resources/MainMenu.cib rename to Resources/MultipleValueBindingsTest/Resources/MainMenu.cib diff --git a/Resources/MultipleValueBindings/Resources/MainMenu.xib b/Resources/MultipleValueBindingsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/MultipleValueBindings/Resources/MainMenu.xib rename to Resources/MultipleValueBindingsTest/Resources/MainMenu.xib diff --git a/Resources/MultipleValueBindings/Resources/spinner.gif b/Resources/MultipleValueBindingsTest/Resources/spinner.gif similarity index 100% rename from Resources/MultipleValueBindings/Resources/spinner.gif rename to Resources/MultipleValueBindingsTest/Resources/spinner.gif diff --git a/Resources/MultipleValueBindings/Transformers.j b/Resources/MultipleValueBindingsTest/Transformers.j similarity index 100% rename from Resources/MultipleValueBindings/Transformers.j rename to Resources/MultipleValueBindingsTest/Transformers.j diff --git a/Resources/MultipleValueBindings/View.cib b/Resources/MultipleValueBindingsTest/View.cib similarity index 100% rename from Resources/MultipleValueBindings/View.cib rename to Resources/MultipleValueBindingsTest/View.cib diff --git a/Resources/NewTextFieldBezel/index-debug.html b/Resources/MultipleValueBindingsTest/index-debug.html similarity index 100% rename from Resources/NewTextFieldBezel/index-debug.html rename to Resources/MultipleValueBindingsTest/index-debug.html diff --git a/Resources/NewTextFieldBezel/index.html b/Resources/MultipleValueBindingsTest/index.html similarity index 100% rename from Resources/NewTextFieldBezel/index.html rename to Resources/MultipleValueBindingsTest/index.html diff --git a/Resources/MultipleValueBindings/main.j b/Resources/MultipleValueBindingsTest/main.j similarity index 100% rename from Resources/MultipleValueBindings/main.j rename to Resources/MultipleValueBindingsTest/main.j diff --git a/Resources/NSBoxTest/Jakefile b/Resources/NSBoxTest/Jakefile index a776e282b..8af8084fe 100644 --- a/Resources/NSBoxTest/Jakefile +++ b/Resources/NSBoxTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2010, WireLoad, LLC All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("CPAlertTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "CPAlertTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "CPAlertTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("CPAlertTest"); task.setIdentifier("com.yourcompany.CPAlertTest"); @@ -26,7 +26,7 @@ app ("CPAlertTest", function(task) task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("CPAlertTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "CPAlertTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "CPAlertTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "CPAlertTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "CPAlertTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "CPAlertTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "CPAlertTest"), FILE.join("Build", "Deployment", "CPAlertTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "CPAlertTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "CPAlertTest"), path.join("Build", "Deployment", "CPAlertTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "CPAlertTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPAlertTest"), FILE.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "CPAlertTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "CPAlertTest"), path.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "CPAlertTest", "CPAlertTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPAlertTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "CPAlertTest")); + console.log("----------------------------"); } diff --git a/Resources/NSBrowserTest/Jakefile b/Resources/NSBrowserTest/Jakefile index 51c206462..577a0e5fd 100644 --- a/Resources/NSBrowserTest/Jakefile +++ b/Resources/NSBrowserTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2013, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("NSBrowserTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "NSBrowserTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "NSBrowserTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("NSBrowserTest"); task.setIdentifier("com.yourcompany.NSBrowserTest"); @@ -26,7 +26,7 @@ app ("NSBrowserTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("NSBrowserTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "NSBrowserTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "NSBrowserTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "NSBrowserTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "NSBrowserTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "NSBrowserTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "NSBrowserTest"), FILE.join("Build", "Deployment", "NSBrowserTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "NSBrowserTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "NSBrowserTest"), path.join("Build", "Deployment", "NSBrowserTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "NSBrowserTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "NSBrowserTest"), FILE.join("Build", "Desktop", "NSBrowserTest", "NSBrowserTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "NSBrowserTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "NSBrowserTest"), path.join("Build", "Desktop", "NSBrowserTest", "NSBrowserTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "NSBrowserTest", "NSBrowserTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "NSBrowserTest", "NSBrowserTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "NSBrowserTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "NSBrowserTest")); + console.log("----------------------------"); } diff --git a/Resources/NewTextFieldBezel/Jakefile b/Resources/NewTextFieldBezel/Jakefile deleted file mode 100644 index 684e5113f..000000000 --- a/Resources/NewTextFieldBezel/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * NewTextField - * - * Created by aparajita on August 10, 2011. - * Copyright 2011, Victory-Heart Productions All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("NewTextField", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "NewTextField.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("NewTextField"); - task.setIdentifier("com.aparajita.NewTextField"); - task.setVersion("1.0"); - task.setAuthor("Victory-Heart Productions"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("NewTextField"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["NewTextField"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "NewTextField", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "NewTextField", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "NewTextField")); - OS.system(["press", "-f", FILE.join("Build", "Release", "NewTextField"), FILE.join("Build", "Deployment", "NewTextField")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "NewTextField")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "NewTextField"), FILE.join("Build", "Desktop", "NewTextField", "NewTextField.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "NewTextField", "NewTextField.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "NewTextField")); - print("----------------------------"); -} diff --git a/Resources/NewTextFieldBezel/AppController.j b/Resources/NewTextFieldBezelTest/AppController.j similarity index 100% rename from Resources/NewTextFieldBezel/AppController.j rename to Resources/NewTextFieldBezelTest/AppController.j diff --git a/Resources/NewTextFieldBezel/Info.plist b/Resources/NewTextFieldBezelTest/Info.plist similarity index 100% rename from Resources/NewTextFieldBezel/Info.plist rename to Resources/NewTextFieldBezelTest/Info.plist diff --git a/Resources/NewTextFieldBezelTest/Jakefile b/Resources/NewTextFieldBezelTest/Jakefile new file mode 100644 index 000000000..fe321fcc6 --- /dev/null +++ b/Resources/NewTextFieldBezelTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * NewTextFieldBezelTest + * + * Created by aparajita on August 10, 2011. + * Copyright 2011, Victory-Heart Productions All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("NewTextFieldBezelTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "NewTextFieldBezelTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("NewTextFieldBezelTest"); + task.setIdentifier("com.aparajita.NewTextFieldBezelTest"); + task.setVersion("1.0"); + task.setAuthor("Victory-Heart Productions"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("NewTextFieldBezelTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["NewTextFieldBezelTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "NewTextFieldBezelTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "NewTextFieldBezelTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "NewTextFieldBezelTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "NewTextFieldBezelTest"), path.join("Build", "Deployment", "NewTextFieldBezelTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "NewTextFieldBezelTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "NewTextFieldBezelTest"), path.join("Build", "Desktop", "NewTextFieldBezelTest", "NewTextFieldBezelTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "NewTextFieldBezelTest", "NewTextFieldBezelTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "NewTextFieldBezelTest")); + console.log("----------------------------"); +} diff --git a/Resources/NewTextFieldBezel/Resources/spinner.gif b/Resources/NewTextFieldBezelTest/Resources/spinner.gif similarity index 100% rename from Resources/NewTextFieldBezel/Resources/spinner.gif rename to Resources/NewTextFieldBezelTest/Resources/spinner.gif diff --git a/Resources/Nib2CibAlignment/index-debug.html b/Resources/NewTextFieldBezelTest/index-debug.html similarity index 100% rename from Resources/Nib2CibAlignment/index-debug.html rename to Resources/NewTextFieldBezelTest/index-debug.html diff --git a/Resources/Nib2CibAlignment/index.html b/Resources/NewTextFieldBezelTest/index.html similarity index 100% rename from Resources/Nib2CibAlignment/index.html rename to Resources/NewTextFieldBezelTest/index.html diff --git a/Resources/NewTextFieldBezel/main.j b/Resources/NewTextFieldBezelTest/main.j similarity index 100% rename from Resources/NewTextFieldBezel/main.j rename to Resources/NewTextFieldBezelTest/main.j diff --git a/Resources/Nib2CibAlignment/Jakefile b/Resources/Nib2CibAlignment/Jakefile deleted file mode 100644 index 783724dc9..000000000 --- a/Resources/Nib2CibAlignment/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * nib2cibAlignment - * - * Created by You on May 17, 2011. - * Copyright 2011, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("nib2cibAlignment", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "nib2cibAlignment.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("nib2cibAlignment"); - task.setIdentifier("com.yourcompany.nib2cibAlignment"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("nib2cibAlignment"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["nib2cibAlignment"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "nib2cibAlignment", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "nib2cibAlignment", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "nib2cibAlignment")); - OS.system(["press", "-f", FILE.join("Build", "Release", "nib2cibAlignment"), FILE.join("Build", "Deployment", "nib2cibAlignment")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "nib2cibAlignment")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "nib2cibAlignment"), FILE.join("Build", "Desktop", "nib2cibAlignment", "nib2cibAlignment.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "nib2cibAlignment", "nib2cibAlignment.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "nib2cibAlignment")); - print("----------------------------"); -} diff --git a/Resources/Nib2CibAlignment/AppController.j b/Resources/Nib2CibAlignmentTest/AppController.j similarity index 100% rename from Resources/Nib2CibAlignment/AppController.j rename to Resources/Nib2CibAlignmentTest/AppController.j diff --git a/Resources/Nib2CibAlignment/Info.plist b/Resources/Nib2CibAlignmentTest/Info.plist similarity index 100% rename from Resources/Nib2CibAlignment/Info.plist rename to Resources/Nib2CibAlignmentTest/Info.plist diff --git a/Resources/Nib2CibAlignmentTest/Jakefile b/Resources/Nib2CibAlignmentTest/Jakefile new file mode 100644 index 000000000..bf25c1366 --- /dev/null +++ b/Resources/Nib2CibAlignmentTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * Nib2CibAlignmentTest + * + * Created by You on May 17, 2011. + * Copyright 2011, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("Nib2CibAlignmentTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "Nib2CibAlignmentTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("Nib2CibAlignmentTest"); + task.setIdentifier("com.yourcompany.Nib2CibAlignmentTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("Nib2CibAlignmentTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["Nib2CibAlignmentTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "Nib2CibAlignmentTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "Nib2CibAlignmentTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "Nib2CibAlignmentTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "Nib2CibAlignmentTest"), path.join("Build", "Deployment", "Nib2CibAlignmentTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "Nib2CibAlignmentTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "Nib2CibAlignmentTest"), path.join("Build", "Desktop", "Nib2CibAlignmentTest", "Nib2CibAlignmentTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "Nib2CibAlignmentTest", "Nib2CibAlignmentTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "Nib2CibAlignmentTest")); + console.log("----------------------------"); +} diff --git a/Resources/Nib2CibAlignment/Resources/MainMenu.cib b/Resources/Nib2CibAlignmentTest/Resources/MainMenu.cib similarity index 100% rename from Resources/Nib2CibAlignment/Resources/MainMenu.cib rename to Resources/Nib2CibAlignmentTest/Resources/MainMenu.cib diff --git a/Resources/Nib2CibAlignment/Resources/MainMenu.xib b/Resources/Nib2CibAlignmentTest/Resources/MainMenu.xib similarity index 100% rename from Resources/Nib2CibAlignment/Resources/MainMenu.xib rename to Resources/Nib2CibAlignmentTest/Resources/MainMenu.xib diff --git a/Resources/Nib2CibAlignment/Resources/spinner.gif b/Resources/Nib2CibAlignmentTest/Resources/spinner.gif similarity index 100% rename from Resources/Nib2CibAlignment/Resources/spinner.gif rename to Resources/Nib2CibAlignmentTest/Resources/spinner.gif diff --git a/Resources/NibAppRemixed/index-debug.html b/Resources/Nib2CibAlignmentTest/index-debug.html similarity index 100% rename from Resources/NibAppRemixed/index-debug.html rename to Resources/Nib2CibAlignmentTest/index-debug.html diff --git a/Resources/NibAppRemixed/index.html b/Resources/Nib2CibAlignmentTest/index.html similarity index 100% rename from Resources/NibAppRemixed/index.html rename to Resources/Nib2CibAlignmentTest/index.html diff --git a/Resources/Nib2CibAlignment/main.j b/Resources/Nib2CibAlignmentTest/main.j similarity index 100% rename from Resources/Nib2CibAlignment/main.j rename to Resources/Nib2CibAlignmentTest/main.j diff --git a/Resources/Nib2CibBaselineAlignementTest/Jakefile b/Resources/Nib2CibBaselineAlignementTest/Jakefile index 999950835..304ab0f12 100644 --- a/Resources/Nib2CibBaselineAlignementTest/Jakefile +++ b/Resources/Nib2CibBaselineAlignementTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("Nib2CibBaselineAlignementTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "Nib2CibBaselineAlignementTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "Nib2CibBaselineAlignementTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("Nib2CibBaselineAlignementTest"); task.setIdentifier("com.yourcompany.Nib2CibBaselineAlignementTest"); @@ -26,7 +26,7 @@ app ("Nib2CibBaselineAlignementTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("Nib2CibBaselineAlignementTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "Nib2CibBaselineAlignementTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "Nib2CibBaselineAlignementTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "Nib2CibBaselineAlignementTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "Nib2CibBaselineAlignementTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "Nib2CibBaselineAlignementTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "Nib2CibBaselineAlignementTest"), FILE.join("Build", "Deployment", "Nib2CibBaselineAlignementTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "Nib2CibBaselineAlignementTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "Nib2CibBaselineAlignementTest"), path.join("Build", "Deployment", "Nib2CibBaselineAlignementTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "Nib2CibBaselineAlignementTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "Nib2CibBaselineAlignementTest"), FILE.join("Build", "Desktop", "Nib2CibBaselineAlignementTest", "Nib2CibBaselineAlignementTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "Nib2CibBaselineAlignementTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "Nib2CibBaselineAlignementTest"), path.join("Build", "Desktop", "Nib2CibBaselineAlignementTest", "Nib2CibBaselineAlignementTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "Nib2CibBaselineAlignementTest", "Nib2CibBaselineAlignementTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "Nib2CibBaselineAlignementTest", "Nib2CibBaselineAlignementTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "Nib2CibBaselineAlignementTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "Nib2CibBaselineAlignementTest")); + console.log("----------------------------"); } diff --git a/Resources/Nib2CibSubviewsOrderTest/Jakefile b/Resources/Nib2CibSubviewsOrderTest/Jakefile index 9258affd9..1567c2afd 100644 --- a/Resources/Nib2CibSubviewsOrderTest/Jakefile +++ b/Resources/Nib2CibSubviewsOrderTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2020, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "Nib2CibSubviewsOrderTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "Nib2CibSubviewsOrderTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "Nib2CibSubviewsOrderTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("Nib2CibSubviewsOrderTest"); task.setIdentifier("com.yourcompany.Nib2CibSubviewsOrderTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("Nib2CibSubviewsOrderTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/NibAppRemixed/.xCodeSupport/NibAppRemixed.xcodeproj/project.pbxproj b/Resources/NibAppRemixed/.xCodeSupport/NibAppRemixed.xcodeproj/project.pbxproj deleted file mode 100644 index 0c00d2009..000000000 --- a/Resources/NibAppRemixed/.xCodeSupport/NibAppRemixed.xcodeproj/project.pbxproj +++ /dev/null @@ -1,357 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 9EEC4498135749D200615446 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9EEC4497135749D200615446 /* Cocoa.framework */; }; - 9EEC44B5135749D300615446 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9EEC4497135749D200615446 /* Cocoa.framework */; }; - 9EEC44CC13574A0B00615446 /* NibAppRemixed in Resources */ = {isa = PBXBuildFile; fileRef = 9EEC44CB13574A0B00615446 /* NibAppRemixed */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 9EEC44B6135749D300615446 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 9EEC448A135749D200615446 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9EEC4492135749D200615446; - remoteInfo = Another; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 9EEC4493135749D200615446 /* Another.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Another.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 9EEC4497135749D200615446 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - 9EEC449A135749D300615446 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 9EEC449B135749D300615446 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; - 9EEC449C135749D300615446 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 9EEC44B4135749D300615446 /* AnotherTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AnotherTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; - 9EEC44CB13574A0B00615446 /* NibAppRemixed */ = {isa = PBXFileReference; lastKnownFileType = folder; name = NibAppRemixed; path = ../../NibAppRemixed; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 9EEC4490135749D200615446 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EEC4498135749D200615446 /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9EEC44B0135749D300615446 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EEC44B5135749D300615446 /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9EEC4488135749D200615446 = { - isa = PBXGroup; - children = ( - 9EEC44CB13574A0B00615446 /* NibAppRemixed */, - 9EEC4496135749D200615446 /* Frameworks */, - 9EEC4494135749D200615446 /* Products */, - ); - sourceTree = ""; - }; - 9EEC4494135749D200615446 /* Products */ = { - isa = PBXGroup; - children = ( - 9EEC4493135749D200615446 /* Another.app */, - 9EEC44B4135749D300615446 /* AnotherTests.octest */, - ); - name = Products; - sourceTree = ""; - }; - 9EEC4496135749D200615446 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 9EEC4497135749D200615446 /* Cocoa.framework */, - 9EEC4499135749D300615446 /* Other Frameworks */, - ); - name = Frameworks; - sourceTree = ""; - }; - 9EEC4499135749D300615446 /* Other Frameworks */ = { - isa = PBXGroup; - children = ( - 9EEC449A135749D300615446 /* AppKit.framework */, - 9EEC449B135749D300615446 /* CoreData.framework */, - 9EEC449C135749D300615446 /* Foundation.framework */, - ); - name = "Other Frameworks"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 9EEC4492135749D200615446 /* Another */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9EEC44C5135749D300615446 /* Build configuration list for PBXNativeTarget "Another" */; - buildPhases = ( - 9EEC448F135749D200615446 /* Sources */, - 9EEC4490135749D200615446 /* Frameworks */, - 9EEC4491135749D200615446 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Another; - productName = Another; - productReference = 9EEC4493135749D200615446 /* Another.app */; - productType = "com.apple.product-type.application"; - }; - 9EEC44B3135749D300615446 /* AnotherTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9EEC44C8135749D300615446 /* Build configuration list for PBXNativeTarget "AnotherTests" */; - buildPhases = ( - 9EEC44AF135749D300615446 /* Sources */, - 9EEC44B0135749D300615446 /* Frameworks */, - 9EEC44B1135749D300615446 /* Resources */, - 9EEC44B2135749D300615446 /* ShellScript */, - ); - buildRules = ( - ); - dependencies = ( - 9EEC44B7135749D300615446 /* PBXTargetDependency */, - ); - name = AnotherTests; - productName = AnotherTests; - productReference = 9EEC44B4135749D300615446 /* AnotherTests.octest */; - productType = "com.apple.product-type.bundle"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 9EEC448A135749D200615446 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0420; - ORGANIZATIONNAME = "280 North, Inc."; - }; - buildConfigurationList = 9EEC448D135749D200615446 /* Build configuration list for PBXProject "NibAppRemixed" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 9EEC4488135749D200615446; - productRefGroup = 9EEC4494135749D200615446 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 9EEC4492135749D200615446 /* Another */, - 9EEC44B3135749D300615446 /* AnotherTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 9EEC4491135749D200615446 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EEC44CC13574A0B00615446 /* NibAppRemixed in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9EEC44B1135749D300615446 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 9EEC44B2135749D300615446 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 9EEC448F135749D200615446 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9EEC44AF135749D300615446 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 9EEC44B7135749D300615446 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 9EEC4492135749D200615446 /* Another */; - targetProxy = 9EEC44B6135749D300615446 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 9EEC44C3135749D300615446 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = DEBUG; - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.6; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - }; - name = Debug; - }; - 9EEC44C4135749D300615446 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.6; - SDKROOT = macosx; - }; - name = Release; - }; - 9EEC44C6135749D300615446 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "Another/Another-Prefix.pch"; - INFOPLIST_FILE = "Another/Another-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 9EEC44C7135749D300615446 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "Another/Another-Prefix.pch"; - INFOPLIST_FILE = "Another/Another-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - 9EEC44C9135749D300615446 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Another.app/Contents/MacOS/Another"; - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks"; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AnotherTests/AnotherTests-Prefix.pch"; - INFOPLIST_FILE = "AnotherTests/AnotherTests-Info.plist"; - OTHER_LDFLAGS = ( - "-framework", - SenTestingKit, - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = octest; - }; - name = Debug; - }; - 9EEC44CA135749D300615446 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Another.app/Contents/MacOS/Another"; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks"; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AnotherTests/AnotherTests-Prefix.pch"; - INFOPLIST_FILE = "AnotherTests/AnotherTests-Info.plist"; - OTHER_LDFLAGS = ( - "-framework", - SenTestingKit, - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = octest; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 9EEC448D135749D200615446 /* Build configuration list for PBXProject "NibAppRemixed" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EEC44C3135749D300615446 /* Debug */, - 9EEC44C4135749D300615446 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9EEC44C5135749D300615446 /* Build configuration list for PBXNativeTarget "Another" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EEC44C6135749D300615446 /* Debug */, - 9EEC44C7135749D300615446 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9EEC44C8135749D300615446 /* Build configuration list for PBXNativeTarget "AnotherTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EEC44C9135749D300615446 /* Debug */, - 9EEC44CA135749D300615446 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 9EEC448A135749D200615446 /* Project object */; -} diff --git a/Resources/NibAppRemixed/.xCodeSupport/Sources/_Users_siker_dev_cappuccino_Tests_Manual_NibAppRemixed_AppController.h b/Resources/NibAppRemixed/.xCodeSupport/Sources/_Users_siker_dev_cappuccino_Tests_Manual_NibAppRemixed_AppController.h deleted file mode 100644 index e1f8b0a57..000000000 --- a/Resources/NibAppRemixed/.xCodeSupport/Sources/_Users_siker_dev_cappuccino_Tests_Manual_NibAppRemixed_AppController.h +++ /dev/null @@ -1,7 +0,0 @@ - -@interface AppController : NSObject -{ - -} - -@end \ No newline at end of file diff --git a/Resources/NibAppRemixed/Jakefile b/Resources/NibAppRemixed/Jakefile deleted file mode 100644 index 74060df6f..000000000 --- a/Resources/NibAppRemixed/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * NibApp.new - * - * Created by Alexander Ljungberg on May 17, 2011. - * Copyright 2011, WireLoad All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("NibAppNew", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "NibAppNew.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("NibApp.new"); - task.setIdentifier("com.yourcompany.NibAppNew"); - task.setVersion("1.0"); - task.setAuthor("WireLoad"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("NibApp.new"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["NibAppNew"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "NibAppNew", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "NibAppNew", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "NibAppNew")); - OS.system(["press", "-f", FILE.join("Build", "Release", "NibAppNew"), FILE.join("Build", "Deployment", "NibAppNew")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "NibAppNew")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "NibAppNew"), FILE.join("Build", "Desktop", "NibAppNew", "NibAppNew.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "NibAppNew", "NibAppNew.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "NibAppNew")); - print("----------------------------"); -} diff --git a/Resources/NibAppRemixed/AppController.j b/Resources/NibAppRemixedTest/AppController.j similarity index 100% rename from Resources/NibAppRemixed/AppController.j rename to Resources/NibAppRemixedTest/AppController.j diff --git a/Resources/NibAppRemixed/Info.plist b/Resources/NibAppRemixedTest/Info.plist similarity index 100% rename from Resources/NibAppRemixed/Info.plist rename to Resources/NibAppRemixedTest/Info.plist diff --git a/Resources/NibAppRemixedTest/Jakefile b/Resources/NibAppRemixedTest/Jakefile new file mode 100644 index 000000000..5e005df1a --- /dev/null +++ b/Resources/NibAppRemixedTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * NibAppRemixedTest + * + * Created by Alexander Ljungberg on May 17, 2011. + * Copyright 2011, WireLoad All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("NibAppRemixedTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "NibAppRemixedTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("NibApp.new"); + task.setIdentifier("com.yourcompany.NibAppRemixedTest"); + task.setVersion("1.0"); + task.setAuthor("WireLoad"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("NibApp.new"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["NibAppRemixedTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "NibAppRemixedTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "NibAppRemixedTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "NibAppRemixedTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "NibAppRemixedTest"), path.join("Build", "Deployment", "NibAppRemixedTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "NibAppRemixedTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "NibAppRemixedTest"), path.join("Build", "Desktop", "NibAppRemixedTest", "NibAppRemixedTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "NibAppRemixedTest", "NibAppRemixedTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "NibAppRemixedTest")); + console.log("----------------------------"); +} diff --git a/Resources/NibAppRemixed/Resources/MainMenu.cib b/Resources/NibAppRemixedTest/Resources/MainMenu.cib similarity index 100% rename from Resources/NibAppRemixed/Resources/MainMenu.cib rename to Resources/NibAppRemixedTest/Resources/MainMenu.cib diff --git a/Resources/NibAppRemixed/Resources/MainMenu.xib b/Resources/NibAppRemixedTest/Resources/MainMenu.xib similarity index 100% rename from Resources/NibAppRemixed/Resources/MainMenu.xib rename to Resources/NibAppRemixedTest/Resources/MainMenu.xib diff --git a/Resources/NibAppRemixed/Resources/spinner.gif b/Resources/NibAppRemixedTest/Resources/spinner.gif similarity index 100% rename from Resources/NibAppRemixed/Resources/spinner.gif rename to Resources/NibAppRemixedTest/Resources/spinner.gif diff --git a/Resources/PlatformWindows/index-debug.html b/Resources/NibAppRemixedTest/index-debug.html similarity index 100% rename from Resources/PlatformWindows/index-debug.html rename to Resources/NibAppRemixedTest/index-debug.html diff --git a/Resources/PlatformWindows/index.html b/Resources/NibAppRemixedTest/index.html similarity index 100% rename from Resources/PlatformWindows/index.html rename to Resources/NibAppRemixedTest/index.html diff --git a/Resources/NibAppRemixed/main.j b/Resources/NibAppRemixedTest/main.j similarity index 100% rename from Resources/NibAppRemixed/main.j rename to Resources/NibAppRemixedTest/main.j diff --git a/Resources/PatternFillTest/Jakefile b/Resources/PatternFillTest/Jakefile index 34daaa6db..4739aa8f9 100644 --- a/Resources/PatternFillTest/Jakefile +++ b/Resources/PatternFillTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("test", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "test.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("test"); task.setIdentifier("com.aparajitaworld.test"); @@ -26,7 +26,7 @@ app ("test", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("test"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -58,36 +58,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "test", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "test", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "test")); - OS.system(["press", "-f", FILE.join("Build", "Release", "test"), FILE.join("Build", "Deployment", "test")]); + fs.mkdirSync(path.join("Build", "Deployment", "test"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "test"), path.join("Build", "Deployment", "test")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "test")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "test"), FILE.join("Build", "Desktop", "test", "test.app")); + fs.mkdirSync(path.join("Build", "Desktop", "test"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "test"), path.join("Build", "Desktop", "test", "test.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "test")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "test")); + console.log("----------------------------"); } diff --git a/Resources/PlatformWindows/AppController.j b/Resources/PlatformWindowsTest/AppController.j similarity index 100% rename from Resources/PlatformWindows/AppController.j rename to Resources/PlatformWindowsTest/AppController.j diff --git a/Resources/PlatformWindows/Info.plist b/Resources/PlatformWindowsTest/Info.plist similarity index 100% rename from Resources/PlatformWindows/Info.plist rename to Resources/PlatformWindowsTest/Info.plist diff --git a/Resources/PlatformWindows/Resources/MainMenu.cib b/Resources/PlatformWindowsTest/Resources/MainMenu.cib similarity index 100% rename from Resources/PlatformWindows/Resources/MainMenu.cib rename to Resources/PlatformWindowsTest/Resources/MainMenu.cib diff --git a/Resources/PlatformWindows/Resources/MainMenu.xib b/Resources/PlatformWindowsTest/Resources/MainMenu.xib similarity index 100% rename from Resources/PlatformWindows/Resources/MainMenu.xib rename to Resources/PlatformWindowsTest/Resources/MainMenu.xib diff --git a/Resources/PlatformWindows/Resources/spinner.gif b/Resources/PlatformWindowsTest/Resources/spinner.gif similarity index 100% rename from Resources/PlatformWindows/Resources/spinner.gif rename to Resources/PlatformWindowsTest/Resources/spinner.gif diff --git a/Resources/ScrollviewTheming/index-debug.html b/Resources/PlatformWindowsTest/index-debug.html similarity index 100% rename from Resources/ScrollviewTheming/index-debug.html rename to Resources/PlatformWindowsTest/index-debug.html diff --git a/Resources/ScrollviewTheming/index.html b/Resources/PlatformWindowsTest/index.html similarity index 100% rename from Resources/ScrollviewTheming/index.html rename to Resources/PlatformWindowsTest/index.html diff --git a/Resources/PlatformWindows/main.j b/Resources/PlatformWindowsTest/main.j similarity index 100% rename from Resources/PlatformWindows/main.j rename to Resources/PlatformWindowsTest/main.j diff --git a/Resources/PopUpButtonEscTest/Jakefile b/Resources/PopUpButtonEscTest/Jakefile index 023520a95..f171d775d 100755 --- a/Resources/PopUpButtonEscTest/Jakefile +++ b/Resources/PopUpButtonEscTest/Jakefile @@ -6,24 +6,24 @@ * Copyright 2013, Austin-Soft.com All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("PopUpButtonTest", function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "PopUpButtonTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "PopUpButtonTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("PopUpButtonTest"); task.setIdentifier("com.austin-soft.PopUpButtonTest"); @@ -31,7 +31,7 @@ app ("PopUpButtonTest", function(task) task.setAuthor("Austin-Soft.com"); task.setEmail("support@austin-soft.com"); task.setSummary("PopUpButtonTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -63,36 +63,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "PopUpButtonTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "PopUpButtonTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "PopUpButtonTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "PopUpButtonTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "PopUpButtonTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "PopUpButtonTest"), FILE.join("Build", "Deployment", "PopUpButtonTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "PopUpButtonTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "PopUpButtonTest"), path.join("Build", "Deployment", "PopUpButtonTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "PopUpButtonTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "PopUpButtonTest"), FILE.join("Build", "Desktop", "PopUpButtonTest", "PopUpButtonTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "PopUpButtonTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "PopUpButtonTest"), path.join("Build", "Desktop", "PopUpButtonTest", "PopUpButtonTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "PopUpButtonTest", "PopUpButtonTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "PopUpButtonTest", "PopUpButtonTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "PopUpButtonTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "PopUpButtonTest")); + console.log("----------------------------"); } diff --git a/Resources/predicateWithFormat/AppController.j b/Resources/PredicateWithFormatTest/AppController.j similarity index 100% rename from Resources/predicateWithFormat/AppController.j rename to Resources/PredicateWithFormatTest/AppController.j diff --git a/Resources/predicateWithFormat/Info.plist b/Resources/PredicateWithFormatTest/Info.plist similarity index 100% rename from Resources/predicateWithFormat/Info.plist rename to Resources/PredicateWithFormatTest/Info.plist diff --git a/Resources/PredicateWithFormatTest/Jakefile b/Resources/PredicateWithFormatTest/Jakefile new file mode 100644 index 000000000..579baea16 --- /dev/null +++ b/Resources/PredicateWithFormatTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * PredicateWithFormatTest + * + * Created by aparajita on May 25, 2011. + * Copyright 2011, Victory-Heart Productions All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("PredicateWithFormatTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "PredicateWithFormatTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("PredicateWithFormatTest"); + task.setIdentifier("com.aparajita.PredicateWithFormatTest"); + task.setVersion("1.0"); + task.setAuthor("Victory-Heart Productions"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("PredicateWithFormatTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["PredicateWithFormatTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "PredicateWithFormatTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "PredicateWithFormatTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "PredicateWithFormatTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "PredicateWithFormatTest"), path.join("Build", "Deployment", "PredicateWithFormatTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "PredicateWithFormatTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "PredicateWithFormatTest"), path.join("Build", "Desktop", "PredicateWithFormatTest", "PredicateWithFormatTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "PredicateWithFormatTest", "PredicateWithFormatTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "PredicateWithFormatTest")); + console.log("----------------------------"); +} diff --git a/Resources/predicateWithFormat/Resources/MainMenu.cib b/Resources/PredicateWithFormatTest/Resources/MainMenu.cib similarity index 100% rename from Resources/predicateWithFormat/Resources/MainMenu.cib rename to Resources/PredicateWithFormatTest/Resources/MainMenu.cib diff --git a/Resources/predicateWithFormat/Resources/MainMenu.xib b/Resources/PredicateWithFormatTest/Resources/MainMenu.xib similarity index 100% rename from Resources/predicateWithFormat/Resources/MainMenu.xib rename to Resources/PredicateWithFormatTest/Resources/MainMenu.xib diff --git a/Resources/ScrollviewTheming/Resources/spinner.gif b/Resources/PredicateWithFormatTest/Resources/spinner.gif similarity index 100% rename from Resources/ScrollviewTheming/Resources/spinner.gif rename to Resources/PredicateWithFormatTest/Resources/spinner.gif diff --git a/Resources/SheetWindowOrderFrontIssue/index-debug.html b/Resources/PredicateWithFormatTest/index-debug.html similarity index 100% rename from Resources/SheetWindowOrderFrontIssue/index-debug.html rename to Resources/PredicateWithFormatTest/index-debug.html diff --git a/Resources/SheetWindowOrderFrontIssue/index.html b/Resources/PredicateWithFormatTest/index.html similarity index 100% rename from Resources/SheetWindowOrderFrontIssue/index.html rename to Resources/PredicateWithFormatTest/index.html diff --git a/Resources/predicateWithFormat/main.j b/Resources/PredicateWithFormatTest/main.j similarity index 100% rename from Resources/predicateWithFormat/main.j rename to Resources/PredicateWithFormatTest/main.j diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/AppController.j b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/AppController.j similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/AppController.j rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/AppController.j diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/Info.plist b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Info.plist similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/Info.plist rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Info.plist diff --git a/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Jakefile b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Jakefile new file mode 100644 index 000000000..a44a8fe6a --- /dev/null +++ b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * ResignFirstResponderWithCPControlTextDidEndEditingTest + * + * Created by aparajita on September 2, 2011. + * Copyright 2011, Victory-Heart Productions All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("resignFirstResponderCPControlTextDidEndEditing", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "resignFirstResponderCPControlTextDidEndEditing.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("ResignFirstResponderWithCPControlTextDidEndEditingTest"); + task.setIdentifier("com.aparajita.resignFirstResponderCPControlTextDidEndEditing"); + task.setVersion("1.0"); + task.setAuthor("Victory-Heart Productions"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("ResignFirstResponderWithCPControlTextDidEndEditingTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["resignFirstResponderCPControlTextDidEndEditing"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "resignFirstResponderCPControlTextDidEndEditing", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "resignFirstResponderCPControlTextDidEndEditing", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "resignFirstResponderCPControlTextDidEndEditing"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "resignFirstResponderCPControlTextDidEndEditing"), path.join("Build", "Deployment", "resignFirstResponderCPControlTextDidEndEditing")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "resignFirstResponderCPControlTextDidEndEditing"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "resignFirstResponderCPControlTextDidEndEditing"), path.join("Build", "Desktop", "resignFirstResponderCPControlTextDidEndEditing", "resignFirstResponderCPControlTextDidEndEditing.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "resignFirstResponderCPControlTextDidEndEditing", "resignFirstResponderCPControlTextDidEndEditing.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "resignFirstResponderCPControlTextDidEndEditing")); + console.log("----------------------------"); +} diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/Resources/MainMenu.cib b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Resources/MainMenu.cib similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/Resources/MainMenu.cib rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Resources/MainMenu.cib diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/Resources/MainMenu.xib b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Resources/MainMenu.xib similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/Resources/MainMenu.xib rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Resources/MainMenu.xib diff --git a/Resources/SmartFoldersDemo/Resources/spinner.gif b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Resources/spinner.gif similarity index 100% rename from Resources/SmartFoldersDemo/Resources/spinner.gif rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/Resources/spinner.gif diff --git a/Resources/SimpleBindings2/index-debug.html b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/index-debug.html similarity index 100% rename from Resources/SimpleBindings2/index-debug.html rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/index-debug.html diff --git a/Resources/SimpleBindings2/index.html b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/index.html similarity index 100% rename from Resources/SimpleBindings2/index.html rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/index.html diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/main.j b/Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/main.j similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/main.j rename to Resources/ResignFirstResponderWithCPControlTextDidEndEditingTest/main.j diff --git a/Resources/ScalingTest2/AppController.j b/Resources/Scaling2Test/AppController.j similarity index 100% rename from Resources/ScalingTest2/AppController.j rename to Resources/Scaling2Test/AppController.j diff --git a/Resources/ScalingTest2/Info.plist b/Resources/Scaling2Test/Info.plist similarity index 100% rename from Resources/ScalingTest2/Info.plist rename to Resources/Scaling2Test/Info.plist diff --git a/Resources/ScalingTest2/Jakefile b/Resources/Scaling2Test/Jakefile similarity index 60% rename from Resources/ScalingTest2/Jakefile rename to Resources/Scaling2Test/Jakefile index 39a070b21..62821b04e 100644 --- a/Resources/ScalingTest2/Jakefile +++ b/Resources/Scaling2Test/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * CappScalingTest + * Scaling2Test * * Created by You on March 15, 2021. * Copyright 2021, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "CappScalingTest"; + projectName = "Scaling2Test"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "CappScalingTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "Scaling2Test.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("CappScalingTest"); - task.setIdentifier("com.yourcompany.CappScalingTest"); + task.setProductName("Scaling2Test"); + task.setIdentifier("com.yourcompany.Scaling2Test"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("CappScalingTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("Scaling2Test"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/ScalingTest2/PagePreviewController.j b/Resources/Scaling2Test/PagePreviewController.j similarity index 100% rename from Resources/ScalingTest2/PagePreviewController.j rename to Resources/Scaling2Test/PagePreviewController.j diff --git a/Resources/ScalingTest2/README.txt b/Resources/Scaling2Test/README.txt similarity index 100% rename from Resources/ScalingTest2/README.txt rename to Resources/Scaling2Test/README.txt diff --git a/Resources/ScalingTest2/Resources/MainMenu.cib b/Resources/Scaling2Test/Resources/MainMenu.cib similarity index 100% rename from Resources/ScalingTest2/Resources/MainMenu.cib rename to Resources/Scaling2Test/Resources/MainMenu.cib diff --git a/Resources/ScalingTest2/Resources/MainMenu.xib b/Resources/Scaling2Test/Resources/MainMenu.xib similarity index 100% rename from Resources/ScalingTest2/Resources/MainMenu.xib rename to Resources/Scaling2Test/Resources/MainMenu.xib diff --git a/Resources/ScalingTest2/Resources/WidgetsLayout.cib b/Resources/Scaling2Test/Resources/WidgetsLayout.cib similarity index 100% rename from Resources/ScalingTest2/Resources/WidgetsLayout.cib rename to Resources/Scaling2Test/Resources/WidgetsLayout.cib diff --git a/Resources/ScalingTest2/Resources/WidgetsLayout.xib b/Resources/Scaling2Test/Resources/WidgetsLayout.xib similarity index 100% rename from Resources/ScalingTest2/Resources/WidgetsLayout.xib rename to Resources/Scaling2Test/Resources/WidgetsLayout.xib diff --git a/Resources/ScalingTest2/WidgetsLayout.j b/Resources/Scaling2Test/WidgetsLayout.j similarity index 100% rename from Resources/ScalingTest2/WidgetsLayout.j rename to Resources/Scaling2Test/WidgetsLayout.j diff --git a/Resources/ScalingTest2/index-debug.html b/Resources/Scaling2Test/index-debug.html similarity index 100% rename from Resources/ScalingTest2/index-debug.html rename to Resources/Scaling2Test/index-debug.html diff --git a/Resources/ScalingTest2/index.html b/Resources/Scaling2Test/index.html similarity index 100% rename from Resources/ScalingTest2/index.html rename to Resources/Scaling2Test/index.html diff --git a/Resources/ScalingTest2/main.j b/Resources/Scaling2Test/main.j similarity index 100% rename from Resources/ScalingTest2/main.j rename to Resources/Scaling2Test/main.j diff --git a/Resources/ScalingTest/Jakefile b/Resources/ScalingTest/Jakefile index cc68e8e0a..589497ee7 100644 --- a/Resources/ScalingTest/Jakefile +++ b/Resources/ScalingTest/Jakefile @@ -6,24 +6,24 @@ * Copyright 2013, Your Company All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("ScalingTest", function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "ScalingTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "ScalingTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("ScalingTest"); task.setIdentifier("com.yourcompany.ScalingTest"); @@ -31,7 +31,7 @@ app ("ScalingTest", function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("ScalingTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -63,36 +63,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "ScalingTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "ScalingTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "ScalingTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "ScalingTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "ScalingTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "ScalingTest"), FILE.join("Build", "Deployment", "ScalingTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "ScalingTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "ScalingTest"), path.join("Build", "Deployment", "ScalingTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "ScalingTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "ScalingTest"), FILE.join("Build", "Desktop", "ScalingTest", "ScalingTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "ScalingTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "ScalingTest"), path.join("Build", "Desktop", "ScalingTest", "ScalingTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "ScalingTest", "ScalingTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "ScalingTest", "ScalingTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "ScalingTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "ScalingTest")); + console.log("----------------------------"); } diff --git a/Resources/ScrollviewTheming/Jakefile b/Resources/ScrollviewTheming/Jakefile deleted file mode 100644 index ba192f9f5..000000000 --- a/Resources/ScrollviewTheming/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * ScrollviewTheming - * - * Created by You on September 9, 2010. - * Copyright 2010, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("ScrollviewTheming", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "ScrollviewTheming.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("ScrollviewTheming"); - task.setIdentifier("com.yourcompany.ScrollviewTheming"); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("ScrollviewTheming"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["ScrollviewTheming"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "ScrollviewTheming", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "ScrollviewTheming", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "ScrollviewTheming")); - OS.system(["press", "-f", FILE.join("Build", "Release", "ScrollviewTheming"), FILE.join("Build", "Deployment", "ScrollviewTheming")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "ScrollviewTheming")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "ScrollviewTheming"), FILE.join("Build", "Desktop", "ScrollviewTheming", "ScrollviewTheming.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "ScrollviewTheming", "ScrollviewTheming.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "ScrollviewTheming")); - print("----------------------------"); -} diff --git a/Resources/ScrollviewTheming/AppController.j b/Resources/ScrollviewThemingTest/AppController.j similarity index 100% rename from Resources/ScrollviewTheming/AppController.j rename to Resources/ScrollviewThemingTest/AppController.j diff --git a/Resources/ScrollviewTheming/DocumentView.j b/Resources/ScrollviewThemingTest/DocumentView.j similarity index 100% rename from Resources/ScrollviewTheming/DocumentView.j rename to Resources/ScrollviewThemingTest/DocumentView.j diff --git a/Resources/ScrollviewTheming/Info.plist b/Resources/ScrollviewThemingTest/Info.plist similarity index 100% rename from Resources/ScrollviewTheming/Info.plist rename to Resources/ScrollviewThemingTest/Info.plist diff --git a/Resources/ScrollviewThemingTest/Jakefile b/Resources/ScrollviewThemingTest/Jakefile new file mode 100644 index 000000000..979a53183 --- /dev/null +++ b/Resources/ScrollviewThemingTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * ScrollviewThemingTest + * + * Created by You on September 9, 2010. + * Copyright 2010, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("ScrollviewThemingTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "ScrollviewThemingTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("ScrollviewThemingTest"); + task.setIdentifier("com.yourcompany.ScrollviewThemingTest"); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("ScrollviewThemingTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["ScrollviewThemingTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "ScrollviewThemingTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "ScrollviewThemingTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "ScrollviewThemingTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "ScrollviewThemingTest"), path.join("Build", "Deployment", "ScrollviewThemingTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "ScrollviewThemingTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "ScrollviewThemingTest"), path.join("Build", "Desktop", "ScrollviewThemingTest", "ScrollviewThemingTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "ScrollviewThemingTest", "ScrollviewThemingTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "ScrollviewThemingTest")); + console.log("----------------------------"); +} diff --git a/Resources/ScrollviewTheming/Resources/MainMenu.cib b/Resources/ScrollviewThemingTest/Resources/MainMenu.cib similarity index 100% rename from Resources/ScrollviewTheming/Resources/MainMenu.cib rename to Resources/ScrollviewThemingTest/Resources/MainMenu.cib diff --git a/Resources/ScrollviewTheming/Resources/MainMenu.xib b/Resources/ScrollviewThemingTest/Resources/MainMenu.xib similarity index 100% rename from Resources/ScrollviewTheming/Resources/MainMenu.xib rename to Resources/ScrollviewThemingTest/Resources/MainMenu.xib diff --git a/Resources/ThemeBrowser/Resources/spinner.gif b/Resources/ScrollviewThemingTest/Resources/spinner.gif similarity index 100% rename from Resources/ThemeBrowser/Resources/spinner.gif rename to Resources/ScrollviewThemingTest/Resources/spinner.gif diff --git a/Resources/SmartFoldersDemo/index-debug.html b/Resources/ScrollviewThemingTest/index-debug.html similarity index 100% rename from Resources/SmartFoldersDemo/index-debug.html rename to Resources/ScrollviewThemingTest/index-debug.html diff --git a/Resources/SmartFoldersDemo/index.html b/Resources/ScrollviewThemingTest/index.html similarity index 100% rename from Resources/SmartFoldersDemo/index.html rename to Resources/ScrollviewThemingTest/index.html diff --git a/Resources/ScrollviewTheming/main.j b/Resources/ScrollviewThemingTest/main.j similarity index 100% rename from Resources/ScrollviewTheming/main.j rename to Resources/ScrollviewThemingTest/main.j diff --git a/Resources/SimpleBindings2/AppController.j b/Resources/SimpleBindings2Test/AppController.j similarity index 100% rename from Resources/SimpleBindings2/AppController.j rename to Resources/SimpleBindings2Test/AppController.j diff --git a/Resources/SimpleBindings2/Info.plist b/Resources/SimpleBindings2Test/Info.plist similarity index 100% rename from Resources/SimpleBindings2/Info.plist rename to Resources/SimpleBindings2Test/Info.plist diff --git a/Resources/ThemeBrowser/index-debug.html b/Resources/SimpleBindings2Test/index-debug.html similarity index 100% rename from Resources/ThemeBrowser/index-debug.html rename to Resources/SimpleBindings2Test/index-debug.html diff --git a/Resources/ThemeBrowser/index.html b/Resources/SimpleBindings2Test/index.html similarity index 100% rename from Resources/ThemeBrowser/index.html rename to Resources/SimpleBindings2Test/index.html diff --git a/Resources/SimpleBindings2/main.j b/Resources/SimpleBindings2Test/main.j similarity index 100% rename from Resources/SimpleBindings2/main.j rename to Resources/SimpleBindings2Test/main.j diff --git a/Resources/sizeToFitFix/AppController.j b/Resources/SizeToFitTest/AppController.j similarity index 100% rename from Resources/sizeToFitFix/AppController.j rename to Resources/SizeToFitTest/AppController.j diff --git a/Resources/sizeToFitFix/Info.plist b/Resources/SizeToFitTest/Info.plist similarity index 100% rename from Resources/sizeToFitFix/Info.plist rename to Resources/SizeToFitTest/Info.plist diff --git a/Resources/SizeToFitTest/Jakefile b/Resources/SizeToFitTest/Jakefile new file mode 100644 index 000000000..3af54cbb2 --- /dev/null +++ b/Resources/SizeToFitTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * SizeToFitTest + * + * Created by aparajita on November 6, 2010. + * Copyright 2010, Victory-Heart Productions All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("SizeToFitTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "SizeToFitTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("SizeToFitTest"); + task.setIdentifier("com.aparajitaworld.SizeToFitTest"); + task.setVersion("1.0"); + task.setAuthor("Victory-Heart Productions"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("SizeToFitTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["SizeToFitTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "SizeToFitTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "SizeToFitTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "SizeToFitTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "SizeToFitTest"), path.join("Build", "Deployment", "SizeToFitTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "SizeToFitTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "SizeToFitTest"), path.join("Build", "Desktop", "SizeToFitTest", "SizeToFitTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "SizeToFitTest", "SizeToFitTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "SizeToFitTest")); + console.log("----------------------------"); +} diff --git a/Resources/UndoRedoWithMenuUpdate/Resources/spinner.gif b/Resources/SizeToFitTest/Resources/spinner.gif similarity index 100% rename from Resources/UndoRedoWithMenuUpdate/Resources/spinner.gif rename to Resources/SizeToFitTest/Resources/spinner.gif diff --git a/Resources/ThemeKitchenSink/index-debug.html b/Resources/SizeToFitTest/index-debug.html similarity index 100% rename from Resources/ThemeKitchenSink/index-debug.html rename to Resources/SizeToFitTest/index-debug.html diff --git a/Resources/ThemeKitchenSink/index.html b/Resources/SizeToFitTest/index.html similarity index 100% rename from Resources/ThemeKitchenSink/index.html rename to Resources/SizeToFitTest/index.html diff --git a/Resources/sizeToFitFix/main.j b/Resources/SizeToFitTest/main.j similarity index 100% rename from Resources/sizeToFitFix/main.j rename to Resources/SizeToFitTest/main.j diff --git a/Resources/SmartFoldersDemo/Jakefile b/Resources/SmartFoldersDemo/Jakefile deleted file mode 100644 index d7c4148a6..000000000 --- a/Resources/SmartFoldersDemo/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * SmartFoldersDemo - * - * Created by You on November 25, 2010. - * Copyright 2010, Your Company All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("SmartFoldersDemo", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "SmartFoldersDemo.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("SmartFoldersDemo"); - task.setIdentifier("com.yourcompany."); - task.setVersion("1.0"); - task.setAuthor("Your Company"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("SmartFoldersDemo"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["SmartFoldersDemo"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "SmartFoldersDemo", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "SmartFoldersDemo", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "SmartFoldersDemo")); - OS.system(["press", "-f", FILE.join("Build", "Release", "SmartFoldersDemo"), FILE.join("Build", "Deployment", "SmartFoldersDemo")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "SmartFoldersDemo")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "SmartFoldersDemo"), FILE.join("Build", "Desktop", "SmartFoldersDemo", "SmartFoldersDemo.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "SmartFoldersDemo", "SmartFoldersDemo.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "SmartFoldersDemo")); - print("----------------------------"); -} diff --git a/Resources/SmartFoldersDemo/AppController.j b/Resources/SmartFoldersTest/AppController.j similarity index 100% rename from Resources/SmartFoldersDemo/AppController.j rename to Resources/SmartFoldersTest/AppController.j diff --git a/Resources/SmartFoldersDemo/BadgedOutlineView.j b/Resources/SmartFoldersTest/BadgedOutlineView.j similarity index 100% rename from Resources/SmartFoldersDemo/BadgedOutlineView.j rename to Resources/SmartFoldersTest/BadgedOutlineView.j diff --git a/Resources/SmartFoldersDemo/ImageAndTextView.j b/Resources/SmartFoldersTest/ImageAndTextView.j similarity index 100% rename from Resources/SmartFoldersDemo/ImageAndTextView.j rename to Resources/SmartFoldersTest/ImageAndTextView.j diff --git a/Resources/SmartFoldersDemo/Info.plist b/Resources/SmartFoldersTest/Info.plist similarity index 100% rename from Resources/SmartFoldersDemo/Info.plist rename to Resources/SmartFoldersTest/Info.plist diff --git a/Resources/SmartFoldersTest/Jakefile b/Resources/SmartFoldersTest/Jakefile new file mode 100644 index 000000000..80b5b8cf0 --- /dev/null +++ b/Resources/SmartFoldersTest/Jakefile @@ -0,0 +1,94 @@ +/* + * Jakefile + * SmartFoldersTest + * + * Created by You on November 25, 2010. + * Copyright 2010, Your Company All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("SmartFoldersTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "SmartFoldersTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("SmartFoldersTest"); + task.setIdentifier("com.yourcompany."); + task.setVersion("1.0"); + task.setAuthor("Your Company"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("SmartFoldersTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + task.setNib2CibFlags("-R Resources/"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["SmartFoldersTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "SmartFoldersTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "SmartFoldersTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "SmartFoldersTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "SmartFoldersTest"), path.join("Build", "Deployment", "SmartFoldersTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "SmartFoldersTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "SmartFoldersTest"), path.join("Build", "Desktop", "SmartFoldersTest", "SmartFoldersTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "SmartFoldersTest", "SmartFoldersTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "SmartFoldersTest")); + console.log("----------------------------"); +} diff --git a/Resources/SmartFoldersDemo/Resources/MainMenu.cib b/Resources/SmartFoldersTest/Resources/MainMenu.cib similarity index 100% rename from Resources/SmartFoldersDemo/Resources/MainMenu.cib rename to Resources/SmartFoldersTest/Resources/MainMenu.cib diff --git a/Resources/SmartFoldersDemo/Resources/MainMenu.xib b/Resources/SmartFoldersTest/Resources/MainMenu.xib similarity index 100% rename from Resources/SmartFoldersDemo/Resources/MainMenu.xib rename to Resources/SmartFoldersTest/Resources/MainMenu.xib diff --git a/Resources/SmartFoldersDemo/Resources/PredicateEditor.cib b/Resources/SmartFoldersTest/Resources/PredicateEditor.cib similarity index 100% rename from Resources/SmartFoldersDemo/Resources/PredicateEditor.cib rename to Resources/SmartFoldersTest/Resources/PredicateEditor.cib diff --git a/Resources/SmartFoldersDemo/Resources/PredicateEditor.xib b/Resources/SmartFoldersTest/Resources/PredicateEditor.xib similarity index 100% rename from Resources/SmartFoldersDemo/Resources/PredicateEditor.xib rename to Resources/SmartFoldersTest/Resources/PredicateEditor.xib diff --git a/Resources/SmartFoldersDemo/Resources/SmartFolder.png b/Resources/SmartFoldersTest/Resources/SmartFolder.png similarity index 100% rename from Resources/SmartFoldersDemo/Resources/SmartFolder.png rename to Resources/SmartFoldersTest/Resources/SmartFolder.png diff --git a/Resources/SmartFoldersDemo/Resources/searchBarBlue.png b/Resources/SmartFoldersTest/Resources/searchBarBlue.png similarity index 100% rename from Resources/SmartFoldersDemo/Resources/searchBarBlue.png rename to Resources/SmartFoldersTest/Resources/searchBarBlue.png diff --git a/Resources/predicateWithFormat/Resources/spinner.gif b/Resources/SmartFoldersTest/Resources/spinner.gif similarity index 100% rename from Resources/predicateWithFormat/Resources/spinner.gif rename to Resources/SmartFoldersTest/Resources/spinner.gif diff --git a/Resources/SmartFoldersDemo/Resources/tableArray.plist b/Resources/SmartFoldersTest/Resources/tableArray.plist similarity index 100% rename from Resources/SmartFoldersDemo/Resources/tableArray.plist rename to Resources/SmartFoldersTest/Resources/tableArray.plist diff --git a/Resources/TrackingArea/index-debug.html b/Resources/SmartFoldersTest/index-debug.html similarity index 100% rename from Resources/TrackingArea/index-debug.html rename to Resources/SmartFoldersTest/index-debug.html diff --git a/Resources/TrackingArea/index.html b/Resources/SmartFoldersTest/index.html similarity index 100% rename from Resources/TrackingArea/index.html rename to Resources/SmartFoldersTest/index.html diff --git a/Resources/SmartFoldersDemo/main.j b/Resources/SmartFoldersTest/main.j similarity index 100% rename from Resources/SmartFoldersDemo/main.j rename to Resources/SmartFoldersTest/main.j diff --git a/Resources/ThemeBrowser/AppController.j b/Resources/ThemeBrowserTest/AppController.j similarity index 100% rename from Resources/ThemeBrowser/AppController.j rename to Resources/ThemeBrowserTest/AppController.j diff --git a/Resources/ThemeBrowser/Info.plist b/Resources/ThemeBrowserTest/Info.plist similarity index 100% rename from Resources/ThemeBrowser/Info.plist rename to Resources/ThemeBrowserTest/Info.plist diff --git a/Resources/ThemeBrowser/Resources/MainMenu.cib b/Resources/ThemeBrowserTest/Resources/MainMenu.cib similarity index 100% rename from Resources/ThemeBrowser/Resources/MainMenu.cib rename to Resources/ThemeBrowserTest/Resources/MainMenu.cib diff --git a/Resources/ThemeBrowser/Resources/MainMenu.xib b/Resources/ThemeBrowserTest/Resources/MainMenu.xib similarity index 100% rename from Resources/ThemeBrowser/Resources/MainMenu.xib rename to Resources/ThemeBrowserTest/Resources/MainMenu.xib diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/Resources/spinner.gif b/Resources/ThemeBrowserTest/Resources/spinner.gif similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/Resources/spinner.gif rename to Resources/ThemeBrowserTest/Resources/spinner.gif diff --git a/Resources/ThemeBrowser/SCMultiLineLabel.j b/Resources/ThemeBrowserTest/SCMultiLineLabel.j similarity index 100% rename from Resources/ThemeBrowser/SCMultiLineLabel.j rename to Resources/ThemeBrowserTest/SCMultiLineLabel.j diff --git a/Resources/ThemeBrowser/SCString.j b/Resources/ThemeBrowserTest/SCString.j similarity index 100% rename from Resources/ThemeBrowser/SCString.j rename to Resources/ThemeBrowserTest/SCString.j diff --git a/Resources/UndoRedoWithMenuUpdate/index-debug.html b/Resources/ThemeBrowserTest/index-debug.html similarity index 100% rename from Resources/UndoRedoWithMenuUpdate/index-debug.html rename to Resources/ThemeBrowserTest/index-debug.html diff --git a/Resources/UndoRedoWithMenuUpdate/index.html b/Resources/ThemeBrowserTest/index.html similarity index 100% rename from Resources/UndoRedoWithMenuUpdate/index.html rename to Resources/ThemeBrowserTest/index.html diff --git a/Resources/ThemeBrowser/main.j b/Resources/ThemeBrowserTest/main.j similarity index 100% rename from Resources/ThemeBrowser/main.j rename to Resources/ThemeBrowserTest/main.j diff --git a/Resources/ThemeKitchenSink/AppController.j b/Resources/ThemeKitchenSinkTest/AppController.j similarity index 100% rename from Resources/ThemeKitchenSink/AppController.j rename to Resources/ThemeKitchenSinkTest/AppController.j diff --git a/Resources/ThemeKitchenSink/Info.plist b/Resources/ThemeKitchenSinkTest/Info.plist similarity index 100% rename from Resources/ThemeKitchenSink/Info.plist rename to Resources/ThemeKitchenSinkTest/Info.plist diff --git a/Resources/ThemeKitchenSink/Jakefile b/Resources/ThemeKitchenSinkTest/Jakefile similarity index 56% rename from Resources/ThemeKitchenSink/Jakefile rename to Resources/ThemeKitchenSinkTest/Jakefile index 3fde4dff5..0f6b386d4 100644 --- a/Resources/ThemeKitchenSink/Jakefile +++ b/Resources/ThemeKitchenSinkTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * ThemeKitchenSink + * ThemeKitchenSinkTest * * Created by Alexander Ljungberg on May 11, 2014. * Copyright 2014, SlevenBits, Ltd. All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "ThemeKitchenSink"; + projectName = "ThemeKitchenSinkTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "ThemeKitchenSink.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "ThemeKitchenSinkTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("ThemeKitchenSink"); - task.setIdentifier("com.yourcompany.ThemeKitchenSink"); + task.setProductName("ThemeKitchenSinkTest"); + task.setIdentifier("com.yourcompany.ThemeKitchenSinkTest"); task.setVersion("1.0"); task.setAuthor("SlevenBits, Ltd."); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("ThemeKitchenSink"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("ThemeKitchenSinkTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "ThemeKitchenSink.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "ThemeKitchenSinkTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "ThemeKitchenSink.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "ThemeKitchenSinkTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (ENV["CONFIGURATION"] === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); + addBundleFileSizes(path.join("Build", ENV["CONFIGURATION"], projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", ENV["CONFIGURATION"], projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/ThemeKitchenSink/Resources/MainMenu.cib b/Resources/ThemeKitchenSinkTest/Resources/MainMenu.cib similarity index 100% rename from Resources/ThemeKitchenSink/Resources/MainMenu.cib rename to Resources/ThemeKitchenSinkTest/Resources/MainMenu.cib diff --git a/Resources/ThemeKitchenSink/Resources/MainMenu.xib b/Resources/ThemeKitchenSinkTest/Resources/MainMenu.xib similarity index 100% rename from Resources/ThemeKitchenSink/Resources/MainMenu.xib rename to Resources/ThemeKitchenSinkTest/Resources/MainMenu.xib diff --git a/Resources/loadDynamicFrameworks/index-debug.html b/Resources/ThemeKitchenSinkTest/index-debug.html similarity index 100% rename from Resources/loadDynamicFrameworks/index-debug.html rename to Resources/ThemeKitchenSinkTest/index-debug.html diff --git a/Resources/loadDynamicFrameworks/index.html b/Resources/ThemeKitchenSinkTest/index.html similarity index 100% rename from Resources/loadDynamicFrameworks/index.html rename to Resources/ThemeKitchenSinkTest/index.html diff --git a/Resources/ThemeKitchenSink/main.j b/Resources/ThemeKitchenSinkTest/main.j similarity index 100% rename from Resources/ThemeKitchenSink/main.j rename to Resources/ThemeKitchenSinkTest/main.j diff --git a/Resources/TrackingArea/AppController.j b/Resources/TrackingAreaTest/AppController.j similarity index 100% rename from Resources/TrackingArea/AppController.j rename to Resources/TrackingAreaTest/AppController.j diff --git a/Resources/TrackingArea/Info.plist b/Resources/TrackingAreaTest/Info.plist similarity index 100% rename from Resources/TrackingArea/Info.plist rename to Resources/TrackingAreaTest/Info.plist diff --git a/Resources/TrackingArea/Jakefile b/Resources/TrackingAreaTest/Jakefile similarity index 56% rename from Resources/TrackingArea/Jakefile rename to Resources/TrackingAreaTest/Jakefile index 51bb86ba2..43a73031a 100644 --- a/Resources/TrackingArea/Jakefile +++ b/Resources/TrackingAreaTest/Jakefile @@ -1,38 +1,38 @@ /* * Jakefile - * TrackingArea + * TrackingAreaTest * * Created by You on November 2, 2015. * Copyright 2015, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), - projectName = "TrackingArea"; + projectName = "TrackingAreaTest"; app (projectName, function(task) { ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "TrackingArea.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "TrackingAreaTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("TrackingArea"); - task.setIdentifier("com.yourcompany.TrackingArea"); + task.setProductName("TrackingAreaTest"); + task.setIdentifier("com.yourcompany.TrackingAreaTest"); task.setVersion("1.0"); task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("TrackingArea"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSummary("TrackingAreaTest"); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,45 +67,45 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", projectName)); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", projectName), FILE.join("Build", "Desktop", projectName, "TrackingArea.app")); + fs.mkdirSync(path.join("Build", "Desktop", projectName), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", projectName), path.join("Build", "Desktop", projectName, "TrackingAreaTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", projectName, "TrackingArea.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", projectName, "TrackingAreaTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -114,14 +114,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -129,17 +129,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -149,34 +149,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/TrackingArea/Resources/MainMenu.cib b/Resources/TrackingAreaTest/Resources/MainMenu.cib similarity index 100% rename from Resources/TrackingArea/Resources/MainMenu.cib rename to Resources/TrackingAreaTest/Resources/MainMenu.cib diff --git a/Resources/TrackingArea/Resources/MainMenu.xib b/Resources/TrackingAreaTest/Resources/MainMenu.xib similarity index 100% rename from Resources/TrackingArea/Resources/MainMenu.xib rename to Resources/TrackingAreaTest/Resources/MainMenu.xib diff --git a/Resources/predicateWithFormat/index-debug.html b/Resources/TrackingAreaTest/index-debug.html similarity index 100% rename from Resources/predicateWithFormat/index-debug.html rename to Resources/TrackingAreaTest/index-debug.html diff --git a/Resources/predicateWithFormat/index.html b/Resources/TrackingAreaTest/index.html similarity index 100% rename from Resources/predicateWithFormat/index.html rename to Resources/TrackingAreaTest/index.html diff --git a/Resources/TrackingArea/main.j b/Resources/TrackingAreaTest/main.j similarity index 100% rename from Resources/TrackingArea/main.j rename to Resources/TrackingAreaTest/main.j diff --git a/Resources/UndoRedoWithMenuUpdate/Jakefile b/Resources/UndoRedoWithMenuUpdate/Jakefile deleted file mode 100644 index 779a724ca..000000000 --- a/Resources/UndoRedoWithMenuUpdate/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * UndoRedoWithMenuUpdate - * - * Created by C. Blair Duncan on September 15, 2010. - * Copyright 2010, BBDO All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("UndoRedoWithMenuUpdate", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "UndoRedoWithMenuUpdate.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("UndoRedoWithMenuUpdate"); - task.setIdentifier("com.yourcompany.UndoRedoWithMenuUpdate"); - task.setVersion("1.0"); - task.setAuthor("BBDO"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("UndoRedoWithMenuUpdate"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["UndoRedoWithMenuUpdate"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "UndoRedoWithMenuUpdate", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "UndoRedoWithMenuUpdate", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "UndoRedoWithMenuUpdate")); - OS.system(["press", "-f", FILE.join("Build", "Release", "UndoRedoWithMenuUpdate"), FILE.join("Build", "Deployment", "UndoRedoWithMenuUpdate")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "UndoRedoWithMenuUpdate")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "UndoRedoWithMenuUpdate"), FILE.join("Build", "Desktop", "UndoRedoWithMenuUpdate", "UndoRedoWithMenuUpdate.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "UndoRedoWithMenuUpdate", "UndoRedoWithMenuUpdate.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "UndoRedoWithMenuUpdate")); - print("----------------------------"); -} diff --git a/Resources/UndoRedoWithMenuUpdate/AppController.j b/Resources/UndoRedoWithMenuUpdateTest/AppController.j similarity index 100% rename from Resources/UndoRedoWithMenuUpdate/AppController.j rename to Resources/UndoRedoWithMenuUpdateTest/AppController.j diff --git a/Resources/UndoRedoWithMenuUpdate/Info.plist b/Resources/UndoRedoWithMenuUpdateTest/Info.plist similarity index 100% rename from Resources/UndoRedoWithMenuUpdate/Info.plist rename to Resources/UndoRedoWithMenuUpdateTest/Info.plist diff --git a/Resources/UndoRedoWithMenuUpdateTest/Jakefile b/Resources/UndoRedoWithMenuUpdateTest/Jakefile new file mode 100644 index 000000000..abf3e1f58 --- /dev/null +++ b/Resources/UndoRedoWithMenuUpdateTest/Jakefile @@ -0,0 +1,93 @@ +/* + * Jakefile + * UndoRedoWithMenuUpdateTest + * + * Created by C. Blair Duncan on September 15, 2010. + * Copyright 2010, BBDO All rights reserved. + */ + +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), + task = JAKE.task, + FileList = JAKE.FileList, + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; + +app ("UndoRedoWithMenuUpdateTest", function(task) +{ + task.setBuildIntermediatesPath(path.join("Build", "UndoRedoWithMenuUpdateTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); + + task.setProductName("UndoRedoWithMenuUpdateTest"); + task.setIdentifier("com.yourcompany.UndoRedoWithMenuUpdateTest"); + task.setVersion("1.0"); + task.setAuthor("BBDO"); + task.setEmail("feedback @nospam@ yourcompany.com"); + task.setSummary("UndoRedoWithMenuUpdateTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); + task.setResources(new FileList("Resources/**")); + task.setIndexFilePath("index.html"); + task.setInfoPlistPath("Info.plist"); + + if (configuration === "Debug") + task.setCompilerFlags("-DDEBUG -g"); + else + task.setCompilerFlags("-O"); +}); + +task ("default", ["UndoRedoWithMenuUpdateTest"], function() +{ + printResults(configuration); +}); + +task ("build", ["default"]); + +task ("debug", function() +{ + ENV["CONFIGURATION"] = "Debug"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("release", function() +{ + ENV["CONFIGURATION"] = "Release"; + JAKE.subjake(["."], "build", ENV); +}); + +task ("run", ["debug"], function() +{ + cp.execSync(["open", path.join("Build", "Debug", "UndoRedoWithMenuUpdateTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("run-release", ["release"], function() +{ + cp.execSync(["open", path.join("Build", "Release", "UndoRedoWithMenuUpdateTest", "index.html")].join(" "), { stdio: "inherit" }); +}); + +task ("deploy", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Deployment", "UndoRedoWithMenuUpdateTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "UndoRedoWithMenuUpdateTest"), path.join("Build", "Deployment", "UndoRedoWithMenuUpdateTest")].join(" "), { stdio: "inherit" }); + printResults("Deployment") +}); + +task ("desktop", ["release"], function() +{ + fs.mkdirSync(path.join("Build", "Desktop", "UndoRedoWithMenuUpdateTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "UndoRedoWithMenuUpdateTest"), path.join("Build", "Desktop", "UndoRedoWithMenuUpdateTest", "UndoRedoWithMenuUpdateTest.app")); + printResults("Desktop") +}); + +task ("run-desktop", ["desktop"], function() +{ + cp.execSync([path.join("Build", "Desktop", "UndoRedoWithMenuUpdateTest", "UndoRedoWithMenuUpdateTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); +}); + +function printResults(configuration) +{ + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "UndoRedoWithMenuUpdateTest")); + console.log("----------------------------"); +} diff --git a/Resources/UndoRedoWithMenuUpdate/Resources/MainMenu.cib b/Resources/UndoRedoWithMenuUpdateTest/Resources/MainMenu.cib similarity index 100% rename from Resources/UndoRedoWithMenuUpdate/Resources/MainMenu.cib rename to Resources/UndoRedoWithMenuUpdateTest/Resources/MainMenu.cib diff --git a/Resources/sizeToFitFix/Resources/spinner.gif b/Resources/UndoRedoWithMenuUpdateTest/Resources/spinner.gif similarity index 100% rename from Resources/sizeToFitFix/Resources/spinner.gif rename to Resources/UndoRedoWithMenuUpdateTest/Resources/spinner.gif diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/index-debug.html b/Resources/UndoRedoWithMenuUpdateTest/index-debug.html similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/index-debug.html rename to Resources/UndoRedoWithMenuUpdateTest/index-debug.html diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/index.html b/Resources/UndoRedoWithMenuUpdateTest/index.html similarity index 100% rename from Resources/resignFirstResponder-CPControlTextDidEndEditing/index.html rename to Resources/UndoRedoWithMenuUpdateTest/index.html diff --git a/Resources/UndoRedoWithMenuUpdate/main.j b/Resources/UndoRedoWithMenuUpdateTest/main.j similarity index 100% rename from Resources/UndoRedoWithMenuUpdate/main.j rename to Resources/UndoRedoWithMenuUpdateTest/main.j diff --git a/Resources/UserlandNSTest/Jakefile b/Resources/UserlandNSTest/Jakefile index 8ad13a6fa..7fd27cf31 100644 --- a/Resources/UserlandNSTest/Jakefile +++ b/Resources/UserlandNSTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2012, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("UserlandNSTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "UserlandNSTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "UserlandNSTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("UserlandNSTest"); task.setIdentifier("com.aparajita.UserlandNSTest"); @@ -26,7 +26,7 @@ app ("UserlandNSTest", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("UserlandNSTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "UserlandNSTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "UserlandNSTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "UserlandNSTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "UserlandNSTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "UserlandNSTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "UserlandNSTest"), FILE.join("Build", "Deployment", "UserlandNSTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "UserlandNSTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "UserlandNSTest"), path.join("Build", "Deployment", "UserlandNSTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "UserlandNSTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "UserlandNSTest"), FILE.join("Build", "Desktop", "UserlandNSTest", "UserlandNSTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "UserlandNSTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "UserlandNSTest"), path.join("Build", "Desktop", "UserlandNSTest", "UserlandNSTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "UserlandNSTest", "UserlandNSTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "UserlandNSTest", "UserlandNSTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "UserlandNSTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "UserlandNSTest")); + console.log("----------------------------"); } diff --git a/Resources/SheetWindowOrderFrontIssue/AppController.j b/Resources/WindowSheetOrderTest/AppController.j similarity index 100% rename from Resources/SheetWindowOrderFrontIssue/AppController.j rename to Resources/WindowSheetOrderTest/AppController.j diff --git a/Resources/SheetWindowOrderFrontIssue/Info.plist b/Resources/WindowSheetOrderTest/Info.plist similarity index 100% rename from Resources/SheetWindowOrderFrontIssue/Info.plist rename to Resources/WindowSheetOrderTest/Info.plist diff --git a/Resources/SheetWindowOrderFrontIssue/Jakefile b/Resources/WindowSheetOrderTest/Jakefile similarity index 64% rename from Resources/SheetWindowOrderFrontIssue/Jakefile rename to Resources/WindowSheetOrderTest/Jakefile index 74848265e..8ac806386 100644 --- a/Resources/SheetWindowOrderFrontIssue/Jakefile +++ b/Resources/WindowSheetOrderTest/Jakefile @@ -6,12 +6,12 @@ * Copyright 2018, Your Company All rights reserved. */ -var ENV = require("system").env, +var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");, FILE = require("file"), JAKE = require("jake"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, + app = CAPPUCCINO.Jake.applicationtask.app, configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", OS = require("os"), projectName = "WindowSheetOrderTest"; @@ -21,10 +21,10 @@ app (projectName, function(task) ENV["OBJJ_INCLUDE_PATHS"] = "Frameworks"; if (configuration === "Debug") - ENV["OBJJ_INCLUDE_PATHS"] = FILE.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); + ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration); - task.setBuildIntermediatesPath(FILE.join("Build", "WindowSheetOrderTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "WindowSheetOrderTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("WindowSheetOrderTest"); task.setIdentifier("com.yourcompany.WindowSheetOrderTest"); @@ -32,7 +32,7 @@ app (projectName, function(task) task.setAuthor("Your Company"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("WindowSheetOrderTest"); - task.setSources(new FileList("**/*.j").exclude(FILE.join("Build", "**")).exclude(FILE.join("Frameworks", "Source", "**"))); + task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -67,33 +67,33 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", projectName, "index.html")]); + cp.execSync(["open", path.join("Build", "Release", projectName, "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", projectName)); - OS.system(["press", "-f", FILE.join("Build", "Release", projectName), FILE.join("Build", "Deployment", projectName)]); + fs.mkdirSync(path.join("Build", "Deployment", projectName), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", projectName), path.join("Build", "Deployment", projectName)].join(" "), { stdio: "inherit" }); printResults("Deployment") }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, projectName)); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, projectName)); + console.log("----------------------------"); } function updateApplicationSize() { - print("Calculating application file sizes..."); + console.log("Calculating application file sizes..."); - var contents = FILE.read(FILE.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), + var contents = FILE.read(path.join("Build", configuration, projectName, "Info.plist"), { charset:"UTF-8" }), format = CFPropertyList.sniffedFormatOfString(contents), plist = CFPropertyList.propertyListFromString(contents), totalBytes = {executable:0, data:0, mhtml:0}; @@ -102,14 +102,14 @@ function updateApplicationSize() var frameworksDir = "Frameworks"; if (configuration === "Debug") - frameworksDir = FILE.join(frameworksDir, "Debug"); + frameworksDir = path.join(frameworksDir, "Debug"); var frameworks = FILE.list(frameworksDir); frameworks.forEach(function(framework) { if (framework !== "Source") - addBundleFileSizes(FILE.join(frameworksDir, framework), totalBytes); + addBundleFileSizes(path.join(frameworksDir, framework), totalBytes); }); // Read in the default theme name, and attempt to get its size @@ -117,17 +117,17 @@ function updateApplicationSize() themePath = nil; if (themeName === "Aristo" || themeName === "Aristo2") - themePath = FILE.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); + themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend"); else - themePath = FILE.join("Frameworks", "Resources", themeName + ".blend"); + themePath = path.join("Frameworks", "Resources", themeName + ".blend"); if (FILE.isDirectory(themePath)) addBundleFileSizes(themePath, totalBytes); // Add sizes for the app - addBundleFileSizes(FILE.join("Build", configuration, projectName), totalBytes); + addBundleFileSizes(path.join("Build", configuration, projectName), totalBytes); - print("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); + console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data)); var dict = new CFMutableDictionary(); @@ -137,34 +137,34 @@ function updateApplicationSize() plist.setValueForKey("CPApplicationSize", dict); - FILE.write(FILE.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); + FILE.write(path.join("Build", configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { charset:"UTF-8" }); } function addBundleFileSizes(bundlePath, totalBytes) { var bundleName = FILE.basename(bundlePath), environment = bundleName === "Foundation" ? "Objj" : "Browser", - bundlePath = FILE.join(bundlePath, environment + ".environment"); + bundlePath = path.join(bundlePath, environment + ".environment"); if (FILE.isDirectory(bundlePath)) { var filename = bundleName + ".sj", - filePath = new FILE.Path(FILE.join(bundlePath, filename)); + filePath = new FILE.Path(path.join(bundlePath, filename)); if (filePath.exists()) totalBytes.executable += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "dataURLs.txt")); + filePath = new FILE.Path(path.join(bundlePath, "dataURLs.txt")); if (filePath.exists()) totalBytes.data += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLData.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLData.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); - filePath = new FILE.Path(FILE.join(bundlePath, "MHTMLPaths.txt")); + filePath = new FILE.Path(path.join(bundlePath, "MHTMLPaths.txt")); if (filePath.exists()) totalBytes.mhtml += filePath.size(); diff --git a/Resources/SheetWindowOrderFrontIssue/Resources/MainMenu.cib b/Resources/WindowSheetOrderTest/Resources/MainMenu.cib similarity index 100% rename from Resources/SheetWindowOrderFrontIssue/Resources/MainMenu.cib rename to Resources/WindowSheetOrderTest/Resources/MainMenu.cib diff --git a/Resources/SheetWindowOrderFrontIssue/Resources/MainMenu.xib b/Resources/WindowSheetOrderTest/Resources/MainMenu.xib similarity index 100% rename from Resources/SheetWindowOrderFrontIssue/Resources/MainMenu.xib rename to Resources/WindowSheetOrderTest/Resources/MainMenu.xib diff --git a/Resources/sizeToFitFix/index-debug.html b/Resources/WindowSheetOrderTest/index-debug.html similarity index 100% rename from Resources/sizeToFitFix/index-debug.html rename to Resources/WindowSheetOrderTest/index-debug.html diff --git a/Resources/sizeToFitFix/index.html b/Resources/WindowSheetOrderTest/index.html similarity index 100% rename from Resources/sizeToFitFix/index.html rename to Resources/WindowSheetOrderTest/index.html diff --git a/Resources/SheetWindowOrderFrontIssue/main.j b/Resources/WindowSheetOrderTest/main.j similarity index 100% rename from Resources/SheetWindowOrderFrontIssue/main.j rename to Resources/WindowSheetOrderTest/main.j diff --git a/Resources/layoutEphemeralSubviewTest/Jakefile b/Resources/layoutEphemeralSubviewTest/Jakefile index ed17fe26b..8f7aff697 100644 --- a/Resources/layoutEphemeralSubviewTest/Jakefile +++ b/Resources/layoutEphemeralSubviewTest/Jakefile @@ -1,31 +1,31 @@ /* * Jakefile - * layoutEphemeralSubviewTest + * LayoutEphemeralSubviewTest * * Created by Aparajita Fishman on October 8, 2010. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; -app ("layoutEphemeralSubviewTest", function(task) +app ("LayoutEphemeralSubviewTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "layoutEphemeralSubviewTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "LayoutEphemeralSubviewTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); - task.setProductName("layoutEphemeralSubviewTest"); - task.setIdentifier("com.yourcompany.layoutEphemeralSubviewTest"); + task.setProductName("LayoutEphemeralSubviewTest"); + task.setIdentifier("com.yourcompany.LayoutEphemeralSubviewTest"); task.setVersion("1.0"); task.setAuthor("WireLoad, LLC"); task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("layoutEphemeralSubviewTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSummary("LayoutEphemeralSubviewTest"); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -36,7 +36,7 @@ app ("layoutEphemeralSubviewTest", function(task) task.setCompilerFlags("-O"); }); -task ("default", ["layoutEphemeralSubviewTest"], function() +task ("default", ["LayoutEphemeralSubviewTest"], function() { printResults(configuration); }); @@ -57,36 +57,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "layoutEphemeralSubviewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "LayoutEphemeralSubviewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "layoutEphemeralSubviewTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "LayoutEphemeralSubviewTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "layoutEphemeralSubviewTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "layoutEphemeralSubviewTest"), FILE.join("Build", "Deployment", "layoutEphemeralSubviewTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "LayoutEphemeralSubviewTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "LayoutEphemeralSubviewTest"), path.join("Build", "Deployment", "LayoutEphemeralSubviewTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "layoutEphemeralSubviewTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "layoutEphemeralSubviewTest"), FILE.join("Build", "Desktop", "layoutEphemeralSubviewTest", "layoutEphemeralSubviewTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "LayoutEphemeralSubviewTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "LayoutEphemeralSubviewTest"), path.join("Build", "Desktop", "LayoutEphemeralSubviewTest", "LayoutEphemeralSubviewTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "layoutEphemeralSubviewTest", "layoutEphemeralSubviewTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "LayoutEphemeralSubviewTest", "LayoutEphemeralSubviewTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "layoutEphemeralSubviewTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "LayoutEphemeralSubviewTest")); + console.log("----------------------------"); } diff --git a/Resources/loadDynamicFrameworks/Jakefile b/Resources/loadDynamicFrameworks/Jakefile deleted file mode 100644 index df6ab732a..000000000 --- a/Resources/loadDynamicFrameworks/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * loadDynamicFrameworks - * - * Created by Blair Duncan on February 23, 2013. - * Copyright 2013, SGL Studio, BBDO Toronto All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("loadDynamicFrameworks", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "loadDynamicFrameworks.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("loadDynamicFrameworks"); - task.setIdentifier("com.yourcompany.loadDynamicFrameworks"); - task.setVersion("1.0"); - task.setAuthor("SGL Studio, BBDO Toronto"); - task.setEmail("Blair.Duncan@BBDO.com"); - task.setSummary("loadDynamicFrameworks"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["loadDynamicFrameworks"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "loadDynamicFrameworks", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "loadDynamicFrameworks", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "loadDynamicFrameworks")); - OS.system(["press", "-f", FILE.join("Build", "Release", "loadDynamicFrameworks"), FILE.join("Build", "Deployment", "loadDynamicFrameworks")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "loadDynamicFrameworks")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "loadDynamicFrameworks"), FILE.join("Build", "Desktop", "loadDynamicFrameworks", "loadDynamicFrameworks.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "loadDynamicFrameworks", "loadDynamicFrameworks.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "loadDynamicFrameworks")); - print("----------------------------"); -} diff --git a/Resources/performKeyEquivalentTest/Jakefile b/Resources/performKeyEquivalentTest/Jakefile index 2107ff75e..8569c198b 100644 --- a/Resources/performKeyEquivalentTest/Jakefile +++ b/Resources/performKeyEquivalentTest/Jakefile @@ -6,19 +6,19 @@ * Copyright 2011, Victory-Heart Productions All rights reserved. */ -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), +var ENV = process.env, + cp = require("child_process"), + fs = require("fs"), + path = require("path"), task = JAKE.task, FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); + app = CAPPUCCINO.Jake.applicationtask.app, + configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug"; app ("performKeyEquivalentTest", function(task) { - task.setBuildIntermediatesPath(FILE.join("Build", "performKeyEquivalentTest.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); + task.setBuildIntermediatesPath(path.join("Build", "performKeyEquivalentTest.build", configuration)); + task.setBuildPath(path.join("Build", configuration)); task.setProductName("performKeyEquivalentTest"); task.setIdentifier("com.aparajita.performKeyEquivalentTest"); @@ -26,7 +26,7 @@ app ("performKeyEquivalentTest", function(task) task.setAuthor("Victory-Heart Productions"); task.setEmail("feedback @nospam@ yourcompany.com"); task.setSummary("performKeyEquivalentTest"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); + task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**"))); task.setResources(new FileList("Resources/**")); task.setIndexFilePath("index.html"); task.setInfoPlistPath("Info.plist"); @@ -59,36 +59,36 @@ task ("release", function() task ("run", ["debug"], function() { - OS.system(["open", FILE.join("Build", "Debug", "performKeyEquivalentTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Debug", "performKeyEquivalentTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("run-release", ["release"], function() { - OS.system(["open", FILE.join("Build", "Release", "performKeyEquivalentTest", "index.html")]); + cp.execSync(["open", path.join("Build", "Release", "performKeyEquivalentTest", "index.html")].join(" "), { stdio: "inherit" }); }); task ("deploy", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Deployment", "performKeyEquivalentTest")); - OS.system(["press", "-f", FILE.join("Build", "Release", "performKeyEquivalentTest"), FILE.join("Build", "Deployment", "performKeyEquivalentTest")]); + fs.mkdirSync(path.join("Build", "Deployment", "performKeyEquivalentTest"), { recursive: true }); + cp.execSync(["press", "-f", path.join("Build", "Release", "performKeyEquivalentTest"), path.join("Build", "Deployment", "performKeyEquivalentTest")].join(" "), { stdio: "inherit" }); printResults("Deployment") }); task ("desktop", ["release"], function() { - FILE.mkdirs(FILE.join("Build", "Desktop", "performKeyEquivalentTest")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "performKeyEquivalentTest"), FILE.join("Build", "Desktop", "performKeyEquivalentTest", "performKeyEquivalentTest.app")); + fs.mkdirSync(path.join("Build", "Desktop", "performKeyEquivalentTest"), { recursive: true }); + require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "performKeyEquivalentTest"), path.join("Build", "Desktop", "performKeyEquivalentTest", "performKeyEquivalentTest.app")); printResults("Desktop") }); task ("run-desktop", ["desktop"], function() { - OS.system([FILE.join("Build", "Desktop", "performKeyEquivalentTest", "performKeyEquivalentTest.app", "Contents", "MacOS", "NativeHost"), "-i"]); + cp.execSync([path.join("Build", "Desktop", "performKeyEquivalentTest", "performKeyEquivalentTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" }); }); function printResults(configuration) { - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "performKeyEquivalentTest")); - print("----------------------------"); + console.log("----------------------------"); + console.log(configuration+" app built at path: "+path.join("Build", configuration, "performKeyEquivalentTest")); + console.log("----------------------------"); } diff --git a/Resources/predicateWithFormat/Jakefile b/Resources/predicateWithFormat/Jakefile deleted file mode 100644 index 654a5bcb8..000000000 --- a/Resources/predicateWithFormat/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * test - * - * Created by aparajita on May 25, 2011. - * Copyright 2011, Victory-Heart Productions All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("test", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "test.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("test"); - task.setIdentifier("com.aparajita.test"); - task.setVersion("1.0"); - task.setAuthor("Victory-Heart Productions"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("test"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["test"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "test", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "test", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "test")); - OS.system(["press", "-f", FILE.join("Build", "Release", "test"), FILE.join("Build", "Deployment", "test")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "test")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "test"), FILE.join("Build", "Desktop", "test", "test.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "test", "test.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "test")); - print("----------------------------"); -} diff --git a/Resources/recipes.txt b/Resources/recipes.txt index b4a8149f6..86eb09efb 100644 --- a/Resources/recipes.txt +++ b/Resources/recipes.txt @@ -1,148 +1,148 @@ -1788475788147|ArrayController1| -1788475788161|ArrayControllerInitialSelectionTest| -1788475788175|ArrayControllerRemovingFirstTest| -1788475788188|AttachedSheet| -1788475788201|AttachedSheet2| -1788475788215|Bindings| -1788475788228|CGCanvasContext| -1788475788242|CGPath| -1788475788255|CPAlertTest| -1788475788268|CPAnimatablePropertyContainerTest| -1788475788282|CPAnimationContextTest| -1788475788295|CPAnimationTest| -1788475788308|CPBinder-echo-bug| -1788475788322|CPBoxCibTest| -1788475788335|CPBoxTest| -1788475788348|CPBrowserTest| -1788475788362|CPButtonBarTest| -1788475788375|CPButtonKeyEquivalentDefaultTest| -1788475788389|CPButtonTest| -1788475788402|CPByteCountFormatter| -1788475788415|CPCollectionViewNibTest| -1788475788429|CPColor-CPImage-description| -1788475788442|CPColorWellBindings| -1788475788455|CPComboBoxTest| -1788475788469|CPControlPerformClickExceptionTest| -1788475788482|CPControlSize| -1788475788495|CPCursor| -1788475788509|CPDateFormatterTest| -1788475788522|CPDatePickerTest| -1788475788535|CPDictionaryControllerTest| -1788475788549|CPDocumentControllerTest| -1788475788562|CPFormatterTest| -1788475788575|CPGraphicsTest| -1788475788589|CPImageAndTextViewImageScaling| -1788475788602|CPImageViewAlignmentScaling| -1788475788615|CPImageViewTest| -1788475788629|CPImageViewbindingsTest| -1788475788642|CPLanguageModelChatbot| -1788475788655|CPLevelIndicator| -1788475788668|CPLocalizationTest| -1788475788682|CPLogTest| -1788475788695|CPMarkdownParser| -1788475788708|CPMenuCALayerTest| -1788475788722|CPMenuEnabledBindingsTest| -1788475788735|CPMenuKeyEquivalents| -1788475788748|CPMenuRemoveAllTest| -1788475788762|CPMenuSubmenuPlacementConstraints| -1788475788775|CPMenuTest| -1788475788788|CPOutlineViewCibTest| -1788475788801|CPOutlineViewTest| -1788475788815|CPOutlineViewViewBasedCibTest| -1788475788828|CPPanelTest| -1788475788842|CPPlatformWindow| -1788475788855|CPPlattformWindowMinSize| -1788475788868|CPPopUpButtonBindings| -1788475788882|CPPopUpButtonTest| -1788475788895|CPPopover| -1788475788908|CPPredicateEditorCibTest| -1788475788922|CPProgressIndicator| -1788475788935|CPPropertyListSerializationTest| -1788475788948|CPRadioBindings| -1788475788961|CPRuleEditorCibTest| -1788475788975|CPRuleEditorTestI8N| -1788475788988|CPScrollView| -1788475789002|CPScrollView2| -1788475789015|CPSearchField| -1788475789028|CPSearchFieldPredicateBinding| -1788475789041|CPSegmentedControlBindings| -1788475789055|CPSegmentedControlTest| -1788475789068|CPSoundTest| -1788475789082|CPSplitViewDivider| -1788475789095|CPSplitViewTest| -1788475789109|CPStackViewTest| -1788475789122|CPStepperBindings| -1788475789135|CPStepperNibTest| -1788475789149|CPTabView2| -1788475789162|CPTabViewBindings| -1788475789175|CPTabViewNib| -1788475789189|CPTableViewGroupRows| -1788475789202|CPTextField| -1788475789215|CPTextFieldEditingStyleTest| -1788475789229|CPTextFieldHeightTest| -1788475789242|CPTextFieldMovementsTest| -1788475789255|CPTextFieldMultiline| -1788475789269|CPTextView| -1788475789282|CPTextViewCibTest| -1788475789295|CPTextViewDelegateAndNotifications| -1788475789309|CPTimeZone| -1788475789322|CPTokenFieldTest| -1788475789335|CPToolTip| -1788475789349|CPToolbarTest| -1788475789362|CPTreeControllerTest| -1788475789375|CPURLConnectionAsyncTest| -1788475789389|CPURLConnectionSynchronousTest| -1788475789402|CPUserDefaults| -1788475789416|CPUserDefaultsControllerTest| -1788475789429|CPUserNotificationTest| -1788475789442|CPViewController| -1788475789456|CPVisualEffectViewTest| -1788475789469|CPWebViewTest| -1788475789482|CPWebViewTest2| -1788475789496|CPWindowLiveResizeTest| -1788475789509|CPWindowMovableTest| -1788475789523|CPWindowResizeStyle| -1788475789536|ChildWindows| -1788475789549|CompilationTests| -1788475789563|ContinuouslyUpdatesValueBinding| -1788475789576|CopyAndPaste| -1788475789589|CrossOriginTest| -1788475789603|FF4096Test| -1788475789616|FontEnhancementTest| -1788475789629|FontMetricsExplorer| -1788475789643|KeyEquivalents| -1788475789656|KeyViewLoopTest| -1788475789670|KeyWindowInTheBackgroundActivation| -1788475789683|LayoutTest| -1788475789696|LoadTimeTest| -1788475789710|LongBindings| -1788475789723|MobileTest| -1788475789736|MultipleValueBindings| -1788475789750|NSBoxTest| -1788475789763|NSBrowserTest| -1788475789777|NewTextFieldBezel| -1788475789790|Nib2CibAlignment| -1788475789803|Nib2CibBaselineAlignementTest| -1788475789817|Nib2CibSubviewsOrderTest| -1788475789830|NibAppRemixed| -1788475789844|PatternFillTest| -1788475789857|PlatformWindows| -1788475789870|PopUpButtonEscTest| -1788475789884|ScalingTest| -1788475789897|ScalingTest2| -1788475789911|ScrollviewTheming| -1788475789924|SheetWindowOrderFrontIssue| -1788475789937|SimpleBindings2| -1788475789951|SmartFoldersDemo| -1788475789964|TableTest| -1788475789978|ThemeBrowser| -1788475789991|ThemeKitchenSink| -1788475790004|TrackingArea| -1788475790018|UndoRedoWithMenuUpdate| -1788475790031|UserlandNSTest| -1788475790044|layoutEphemeralSubviewTest| -1788475790058|loadDynamicFrameworks| -1788475790071|performKeyEquivalentTest| -1788475790084|predicateWithFormat| -1788475790098|resignFirstResponder-CPControlTextDidEndEditing| -1788475790111|sizeToFitFix| +1788917347935|ArrayControllerInitialSelectionTest| +1788917347948|ArrayControllerRemovingFirstTest| +1788917347961|ArrayControllerTest| +1788917347974|AttachedSheet2Test| +1788917347987|AttachedSheetTest| +1788917348000|BindingContentArrayTest| +1788917348013|CGCanvasContextTest| +1788917348026|CGPathTest| +1788917348039|CPAlertTest| +1788917348052|CPAnimatablePropertyContainerTest| +1788917348065|CPAnimationContextTest| +1788917348078|CPAnimationTest| +1788917348090|CPBinderEchoBug| +1788917348103|CPBoxCibTest| +1788917348116|CPBoxTest| +1788917348129|CPBrowserTest| +1788917348142|CPButtonBarTest| +1788917348155|CPButtonKeyEquivalentDefaultTest| +1788917348168|CPButtonTest| +1788917348181|CPByteCountFormatterTest| +1788917348194|CPCollectionViewNibTest| +1788917348207|CPColorCPImageDescriptionTest| +1788917348220|CPColorWellBindingsTest| +1788917348233|CPComboBoxTest| +1788917348246|CPControlPerformClickExceptionTest| +1788917348259|CPControlSizeTest| +1788917348272|CPCursorTest| +1788917348285|CPDateFormatterTest| +1788917348298|CPDatePickerTest| +1788917348311|CPDictionaryControllerTest| +1788917348324|CPDocumentControllerTest| +1788917348337|CPFormatterTest| +1788917348350|CPGraphicsTest| +1788917348363|CPImageAndTextViewImageScalingTest| +1788917348376|CPImageViewAlignmentScaling| +1788917348389|CPImageViewTest| +1788917348402|CPImageViewbindingsTest| +1788917348415|CPLanguageModelChatbotTest| +1788917348428|CPLevelIndicator| +1788917348441|CPLevelIndicatorTest| +1788917348454|CPLocalizationTest| +1788917348467|CPLogTest| +1788917348480|CPMarkdownParserTest| +1788917348493|CPMenuCALayerTest| +1788917348506|CPMenuEnabledBindingsTest| +1788917348519|CPMenuKeyEquivalentsTest| +1788917348532|CPMenuRemoveAllTest| +1788917348545|CPMenuSubmenuPlacementConstraints| +1788917348558|CPMenuTest| +1788917348571|CPOutlineViewCibTest| +1788917348584|CPOutlineViewTest| +1788917348597|CPOutlineViewViewBasedCibTest| +1788917348610|CPPanelTest| +1788917348624|CPPlatformWindow| +1788917348636|CPPlattformWindowMinSize| +1788917348649|CPPopUpButtonBindingsTest| +1788917348663|CPPopUpButtonTest| +1788917348675|CPPopoverTest| +1788917348688|CPPredicateEditorCibTest| +1788917348701|CPProgressIndicatorTest| +1788917348714|CPPropertyListSerializationTest| +1788917348727|CPRadioBindingsTest| +1788917348740|CPRuleEditorCibTest| +1788917348753|CPRuleEditorTest| +1788917348766|CPScrollView2Test| +1788917348779|CPScrollViewTest| +1788917348792|CPSearchFieldPredicateBinding| +1788917348805|CPSearchFieldTest| +1788917348818|CPSegmentedControlBindingsTest| +1788917348831|CPSegmentedControlTest| +1788917348844|CPSoundTest| +1788917348857|CPSplitViewDividerTest| +1788917348870|CPSplitViewTest| +1788917348883|CPStackViewTest| +1788917348896|CPStepperBindingsTest| +1788917348908|CPStepperNibTest| +1788917348921|CPTabView2Test| +1788917348934|CPTabViewBindingsTest| +1788917348947|CPTabViewNibTest| +1788917348960|CPTableViewGroupRowsTest| +1788917348973|CPTextFieldEditingStyleTest| +1788917348986|CPTextFieldHeightTest| +1788917348999|CPTextFieldMovementsTest| +1788917349012|CPTextFieldMultiLineTest| +1788917349024|CPTextFieldTest| +1788917349037|CPTextViewCibTest| +1788917349050|CPTextViewDelegateAndNotificationsTest| +1788917349063|CPTimeZoneTest| +1788917349076|CPTokenFieldTest| +1788917349089|CPToolTipTest| +1788917349102|CPToolbarTest| +1788917349115|CPTreeControllerTest| +1788917349128|CPURLConnectionAsyncTest| +1788917349140|CPURLConnectionSynchronousTest| +1788917349153|CPUserDefaultsControllerTest| +1788917349166|CPUserDefaultsTest| +1788917349179|CPUserNotificationTest| +1788917349192|CPViewControllerTest| +1788917349205|CPVisualEffectViewTest| +1788917349218|CPWebViewTest| +1788917349231|CPWebViewTest2| +1788917349244|CPWindowLiveResizeTest| +1788917349257|CPWindowMovableTest| +1788917349270|CPWindowResizeStyleTest| +1788917349282|ChildWindowsTest| +1788917349295|CompilationTests| +1788917349308|ContinuouslyUpdatesValueBinding| +1788917349321|CopyAndPasteTest| +1788917349334|CrossOriginTest| +1788917349347|FF4096Test| +1788917349360|FontEnhancementTest| +1788917349373|FontMetricsExplorerTest| +1788917349386|KeyEquivalentsTest| +1788917349399|KeyViewLoopTest| +1788917349412|KeyWindowInTheBackgroundActivation| +1788917349425|LayoutTest| +1788917349438|LoadDynamicFrameworksTest| +1788917349451|LoadTimeTest| +1788917349464|LongBindingsTest| +1788917349476|MobileTest| +1788917349489|MultipleValueBindingsTest| +1788917349502|NSBoxTest| +1788917349515|NSBrowserTest| +1788917349528|NewTextFieldBezelTest| +1788917349541|Nib2CibAlignmentTest| +1788917349554|Nib2CibBaselineAlignementTest| +1788917349567|Nib2CibSubviewsOrderTest| +1788917349580|NibAppRemixedTest| +1788917349593|PatternFillTest| +1788917349606|PlatformWindowsTest| +1788917349619|PopUpButtonEscTest| +1788917349632|PredicateWithFormatTest| +1788917349645|ResignFirstResponderWithCPControlTextDidEndEditingTest| +1788917349658|Scaling2Test| +1788917349671|ScalingTest| +1788917349684|ScrollviewThemingTest| +1788917349697|SimpleBindings2Test| +1788917349710|SizeToFitTest| +1788917349723|SmartFoldersTest| +1788917349736|TableTest| +1788917349749|ThemeBrowserTest| +1788917349762|ThemeKitchenSinkTest| +1788917349774|TrackingAreaTest| +1788917349787|UndoRedoWithMenuUpdateTest| +1788917349800|UserlandNSTest| +1788917349813|WindowSheetOrderTest| +1788917349826|layoutEphemeralSubviewTest| +1788917349839|performKeyEquivalentTest| diff --git a/Resources/resignFirstResponder-CPControlTextDidEndEditing/Jakefile b/Resources/resignFirstResponder-CPControlTextDidEndEditing/Jakefile deleted file mode 100644 index 8189d9684..000000000 --- a/Resources/resignFirstResponder-CPControlTextDidEndEditing/Jakefile +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Jakefile - * resignFirstResponder-CPControlTextDidEndEditing - * - * Created by aparajita on September 2, 2011. - * Copyright 2011, Victory-Heart Productions All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("resignFirstResponderCPControlTextDidEndEditing", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "resignFirstResponderCPControlTextDidEndEditing.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("resignFirstResponder-CPControlTextDidEndEditing"); - task.setIdentifier("com.aparajita.resignFirstResponderCPControlTextDidEndEditing"); - task.setVersion("1.0"); - task.setAuthor("Victory-Heart Productions"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("resignFirstResponder-CPControlTextDidEndEditing"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - task.setNib2CibFlags("-R Resources/"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["resignFirstResponderCPControlTextDidEndEditing"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "resignFirstResponderCPControlTextDidEndEditing", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "resignFirstResponderCPControlTextDidEndEditing", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "resignFirstResponderCPControlTextDidEndEditing")); - OS.system(["press", "-f", FILE.join("Build", "Release", "resignFirstResponderCPControlTextDidEndEditing"), FILE.join("Build", "Deployment", "resignFirstResponderCPControlTextDidEndEditing")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "resignFirstResponderCPControlTextDidEndEditing")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "resignFirstResponderCPControlTextDidEndEditing"), FILE.join("Build", "Desktop", "resignFirstResponderCPControlTextDidEndEditing", "resignFirstResponderCPControlTextDidEndEditing.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "resignFirstResponderCPControlTextDidEndEditing", "resignFirstResponderCPControlTextDidEndEditing.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "resignFirstResponderCPControlTextDidEndEditing")); - print("----------------------------"); -} diff --git a/Resources/sizeToFitFix/Jakefile b/Resources/sizeToFitFix/Jakefile deleted file mode 100644 index 27bfc2a91..000000000 --- a/Resources/sizeToFitFix/Jakefile +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Jakefile - * sizeToFit - * - * Created by aparajita on November 6, 2010. - * Copyright 2010, Victory-Heart Productions All rights reserved. - */ - -var ENV = require("system").env, - FILE = require("file"), - JAKE = require("jake"), - task = JAKE.task, - FileList = JAKE.FileList, - app = require("cappuccino/jake").app, - configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug", - OS = require("os"); - -app ("sizeToFit", function(task) -{ - task.setBuildIntermediatesPath(FILE.join("Build", "sizeToFit.build", configuration)); - task.setBuildPath(FILE.join("Build", configuration)); - - task.setProductName("sizeToFit"); - task.setIdentifier("com.aparajitaworld.sizeToFit"); - task.setVersion("1.0"); - task.setAuthor("Victory-Heart Productions"); - task.setEmail("feedback @nospam@ yourcompany.com"); - task.setSummary("sizeToFit"); - task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**"))); - task.setResources(new FileList("Resources/**")); - task.setIndexFilePath("index.html"); - task.setInfoPlistPath("Info.plist"); - - if (configuration === "Debug") - task.setCompilerFlags("-DDEBUG -g"); - else - task.setCompilerFlags("-O"); -}); - -task ("default", ["sizeToFit"], function() -{ - printResults(configuration); -}); - -task ("build", ["default"]); - -task ("debug", function() -{ - ENV["CONFIGURATION"] = "Debug"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("release", function() -{ - ENV["CONFIGURATION"] = "Release"; - JAKE.subjake(["."], "build", ENV); -}); - -task ("run", ["debug"], function() -{ - OS.system(["open", FILE.join("Build", "Debug", "sizeToFit", "index.html")]); -}); - -task ("run-release", ["release"], function() -{ - OS.system(["open", FILE.join("Build", "Release", "sizeToFit", "index.html")]); -}); - -task ("deploy", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Deployment", "sizeToFit")); - OS.system(["press", "-f", FILE.join("Build", "Release", "sizeToFit"), FILE.join("Build", "Deployment", "sizeToFit")]); - printResults("Deployment") -}); - -task ("desktop", ["release"], function() -{ - FILE.mkdirs(FILE.join("Build", "Desktop", "sizeToFit")); - require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "sizeToFit"), FILE.join("Build", "Desktop", "sizeToFit", "sizeToFit.app")); - printResults("Desktop") -}); - -task ("run-desktop", ["desktop"], function() -{ - OS.system([FILE.join("Build", "Desktop", "sizeToFit", "sizeToFit.app", "Contents", "MacOS", "NativeHost"), "-i"]); -}); - -function printResults(configuration) -{ - print("----------------------------"); - print(configuration+" app built at path: "+FILE.join("Build", configuration, "sizeToFit")); - print("----------------------------"); -}