/** * Copyright (C) 2014 Perforce Software. All rights reserved. * * Please see LICENSE.txt in top-level folder of this distribution. */ apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'java-library-distribution' sourceCompatibility = 1.7 version = '2014.1' repositories { mavenCentral() } configurations { provided compile.extendsFrom provided } dependencies { compile files( 'libs/api.jar', 'libs/util.jar' ) compile 'com.perforce:p4java:2013.2+' compile 'org.apache.logging.log4j:log4j-api:2.0-rc1' compile 'org.apache.logging.log4j:log4j-core:2.0-rc1' compile 'commons-io:commons-io:2.4' compile 'org.apache.commons:commons-exec:1.2' compile 'org.apache.commons:commons-compress:1.8.1' testCompile 'junit:junit:4.10' } jar { manifest { attributes( 'Bundle-Name': 'P4Simulink', 'Mathworks-Bundle': 'true', 'Bundle-SymbolicName': 'com.perforce.p4simulink', 'Budle-Description': 'Perforce CM integration for Simulink', 'Budle-Vendor': 'Perforce Software', 'Bundle-Version': version, 'Bundle-Activator': 'com.mathworks.util.osgi.ServicesActivator', 'Services': 'com.mathworks.cmlink.api.version.r14a.CMAdapterFactory: com.perforce.p4simulink.P4AdapterFactory') } // include dependent jars (build a so-called "fat" jar) dependsOn configurations.runtime from { (configurations.runtime - configurations.provided).collect { it.isDirectory() ? it : zipTree(it) } } { exclude "com/mathworks/**" } } task wrapper( type: Wrapper ) { gradleVersion = '1.12' } test { include 'com/perforce/p4simulink/test/**' // show standard out and standard error of the test JVM(s) on the console testLogging.showStandardStreams = true // set heap size for the test JVM(s) minHeapSize = "128m" maxHeapSize = "512m" // set JVM arguments for the test JVM(s) jvmArgs '-XX:MaxPermSize=256m' // listen to events in the test execution lifecycle beforeTest { descriptor -> logger.lifecycle("Running test: " + descriptor) } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#16 | 17306 | Paul Allen | Removed Host from Workspace to allow tests to run on other machines | ||
#15 | 12419 | Paul Allen | Update tests - basic add, edit, delete and move. | ||
#14 | 12034 | Paul Allen |
Change build to use a -Pchange=<Perforce Change> for the version string. Will default to 0 if not defined. |
||
#13 | 12023 | Paul Allen | Copying using p4Simulink_dev->main | ||
#12 | 11664 | Paul Allen |
New build for Mathworks to look at. Transferred from p4://perforce.perforce.com:1666@991739 |
||
#11 | 11662 | Paul Allen |
Fix NPE in changelist selector, remove reference to "Simulink project" from error messages. Transferred from p4://perforce.perforce.com:1666@988672 |
||
#10 | 11661 | Paul Allen |
Finishing up unit tests. Transferred from p4://perforce.perforce.com:1666@985194 |
||
#9 | 11659 | Paul Allen |
Performance improvements, continued: improved performance of getFileState() by replacing the client haveList call with a direct server command. Also improved isLatest by removing fstat calls and replacing with simpler calls to diff and sync. Transferred from p4://perforce.perforce.com:1666@983506 |
||
#8 | 11655 | Paul Allen |
Updating for Scania demo. Transferred from p4://perforce.perforce.com:1666@977338 |
||
#7 | 11652 | Paul Allen |
Added boilerplate to code, fixed build issues (NPEs on plugin load), removed Mathworks classes from plugin jar, fixed delete vs missing issue on remove() call. Transferred from p4://perforce.perforce.com:1666@970498 |
||
#6 | 11651 | Paul Allen |
Finalizing alpha code changes - adding jar for release. Transferred from p4://perforce.perforce.com:1666@962486 |
||
#5 | 11650 | Paul Allen |
Adding README.txt, added revision number changes for files that have changed in the depot (have/head style) and added build version and type to build process as well as version string within the plugin. Transferred from p4://perforce.perforce.com:1666@959461 |
||
#4 | 11643 | Paul Allen |
Unshelved from pending changelist '953729': Paul: Added: - getWorkspaceState() -- run a p4 status - getOpenedState() -- run p4 opened - getIgnoreState() -- run p4 add -n Modified: - add() -- seemed to call reopen? - P4FileState -- simple constructor for state Elliot: * global client and changelist object within the adapter * removed repeated client updates and changelist refreshes * removed 'reopen' in add * added calls to 'edit' where appropriate file states are found * made 'checkout' a pure sync, with no edits * commented a bunch of the @Override methods * added a call to haveList in getFileState so we can see versions of files in the project * changed the connection pane to look like p4v's * refactored a bit of the dialogue code, added calls to prompt for password (like p4v) * changed all log.trace() calls to log.debug() so the log file messiness can be controlled more easily Functionality that now works properly: * open project from source control, with properly-configured .p4config file * add new project to source control, with properly-configured .p4config file * add * edit * commit * revert * compare reversions (opens Simulink diff tool) Things to work on: * dialogues (particularily the password one, but the connection one is a bit dodge-y) * remove from project (possibly always making the Simulink project meta-data editable will fix this - it *almost* works) - the current issue is Simulink needs to edit the meta-data, but Perforce has made the files read-only, so Simulink throws up on itself Transferred from p4://perforce.perforce.com:1666@954622 |
||
#3 | 11635 | Paul Allen |
Updated gradle build to create a "fat jar", fixed some issues with the interfaces when it runs in Simulink itself. Added connection.configuration pane, switched the adapter to use a current changelist which gives a more svn-ish feel (which the Adapter is expecting). Added some more unit tests. General re-factoring. Transferred from p4://perforce.perforce.com:1666@946607 |
||
#2 | 11633 | Paul Allen |
Various fixes including workaround for no “admin” commands in p4java. Transferred from p4://perforce.perforce.com:1666@938159 |
||
#1 | 11632 | Paul Allen |
Added commons-exec library, server startup/shutdown for unit tests, fixed a bunch of NPEs. Transferred from p4://perforce.perforce.com:1666@937331 |