Use prereq and such instead of manual dependency loading
With PackageLoader loadPackageFromFile we do not need to load the package in the source file.
This commit is contained in:
parent
ed9b198256
commit
e32d2ac2be
|
@ -16,10 +16,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
|
||||
PackageLoader
|
||||
fileInPackage: 'Sockets';
|
||||
fileInPackage: 'OsmoNetwork'.
|
||||
|
||||
Object subclass: MGCPCallAgentBase [
|
||||
| net trunks sem addr port |
|
||||
<category: 'OsmoMGCP-Callagent'>
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
|
||||
PackageLoader fileInPackage: #OsmoLogging.
|
||||
|
||||
Osmo.LogArea subclass: MGCPLogArea [
|
||||
<category: 'OsmoMGCP-Logging'>
|
||||
|
||||
|
|
|
@ -16,10 +16,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
|
||||
PackageLoader
|
||||
fileInPackage: 'Sockets';
|
||||
fileInPackage: 'OsmoCore'.
|
||||
|
||||
Object subclass: MGCPTransactionBase [
|
||||
| callagent t_retransmit t_expire t_remove sem |
|
||||
<comment: 'I handle timers for the transaction'>
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
|
||||
PackageLoader fileInPackage: 'PetitParser'.
|
||||
|
||||
PP.PPCompositeParser subclass: MGCPGrammar [
|
||||
| MGCPMessage EOL One_WSP MGCPMessage MGCPCommandLine MGCPVerb transaction_id endpointName MGCPversion MGCPParameter MGCPCommand ParameterValue SDPRecord SDPLine SDPinformation MGCPResponseLine responseCode responseString packageName wordParser |
|
||||
<category: 'OsmoMGCP-Core'>
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
|
||||
PackageLoader fileInPackage: 'PetitParserTests'.
|
||||
|
||||
PP.PPCompositeParserTest subclass: MGCPGrammarTest [
|
||||
<comment: 'I test some parts of the grammar'>
|
||||
<category: 'OsmoMGCP-Core-Tests'>
|
||||
|
|
|
@ -2,8 +2,11 @@
|
|||
<name>OsmoMGCP</name>
|
||||
<namespace>Osmo</namespace>
|
||||
|
||||
<prereq>Sockets</prereq>
|
||||
<prereq>PetitParser</prereq>
|
||||
<prereq>OsmoLogging</prereq>
|
||||
<prereq>OsmoCore</prereq>
|
||||
<prereq>OsmoNetwork</prereq>
|
||||
<filein>grammar/MGCPGrammar.st</filein>
|
||||
|
||||
<filein>callagent/MGCPCallAgent.st</filein>
|
||||
|
@ -16,6 +19,7 @@
|
|||
<filein>callagent/MGCPParser.st</filein>
|
||||
|
||||
<test>
|
||||
<prereq>PetitParserTests</prereq>
|
||||
<sunit>Osmo.MGCPGrammarTest</sunit>
|
||||
<sunit>Osmo.MGCPCommandTest</sunit>
|
||||
<sunit>Osmo.MGCPEndpointAllocTest</sunit>
|
||||
|
|
Reference in New Issue