blob: 42123e164aa8941a1eaa742706ab4e56846aa5c2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2013 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - initial API and implementation
* E.D.Willink (CEA LIST) - Bug 424034
*
* Run As->MWE2 Workflow to regenerate the pivot model.
*******************************************************************************/
module GenerateTextileForLibrary
import org.eclipse.ocl.examples.build.textile.*
import org.eclipse.ocl.examples.build.utilities.*
import org.eclipse.emf.mwe.utils.*
import org.eclipse.emf.ecore.resource.impl.*
var sourceName = "org.eclipse.ocl.pivot"
var targetName = "org.eclipse.ocl.doc"
/**
* Generate the OCLstdlib Model, by converting oclstdlib.oclstdlib to OCLstdlib.java.
*/
Workflow {
bean = ResourceSetImpl : resourceSet {}
bean = StandaloneSetup { resourceSet = resourceSet
platformUri = ".."
scanClassPath = true
}
bean = GenModelSetup { resourceSet = resourceSet }
component = GenerateTextileForLibraryXtend { resourceSet = resourceSet
projectName = "${sourceName}"
modelFile = "model/OCL-2.5.oclstdlib"
textileFolder = "/../doc/${targetName}/doc"
textileFileName = "2000-ocl-standard-library"
}
}